gpt4 book ai didi

java - 在服务器启动参数中通过 WebLogic 控制台设置堆大小并不反射(reflect)堆大小

转载 作者:太空宇宙 更新时间:2023-11-04 13:05:01 25 4
gpt4 key购买 nike

我已在 WebLogic 控制台服务器启动 JVM 参数中将堆大小设置为 -Xms1024m -Xmx1024m。但在 setDomainEnv.sh 级别,它是 -Xms256m -Xmx512m

当我启动托管服务器时,堆大小分配是根据 setDomainEnv.sh 而不是根据我的参数。您能否解释一下 setDomainEnv 如何优先于参数以及我应该如何使用服务器启动参数中提到的堆大小启动 JVM?

我尝试将其放入 startManagedWeblogic.sh 文件中,并在 nodemanger=false 处启用 StartScriptEnabled。但没有任何结果。

最佳答案

您只需编辑 setDomainEnv 内的值即可。该名称代表“设置域环境”,因此这就是您的环境配置设置应该在的位置。您甚至可以在 Oracle 文档中找到这样的建议:https://docs.oracle.com/cd/E40518_01/server.761/es_install/src/tins_postinstall_jvm_heap.html

Customizing the WebLogic JVM heap size

You can change the default JVM heap size to fit the needs of your deployment.

The default JVM heap size for WebLogic is 3GB. The size is set in the setDomainEnv.sh file for Linux or setDomainEnv.cmd for Windows, which is in the $DOMAIN_HOME/bin directory. The heap size is set with the -Xmx option.

关于java - 在服务器启动参数中通过 WebLogic 控制台设置堆大小并不反射(reflect)堆大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34564986/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com