简体   繁体   English

如何在 glassfish v2 的节点代理上设置 jvm memory 设置?

[英]How to set jvm memory settings on the node agent in glassfish v2?

I m trying to find how to set the jvm memory settings (-Xmx) for the node agent in glassfish v2.我试图找到如何为 glassfish v2 中的节点代理设置 jvm memory 设置(-Xmx)。

I could not find any option in the admin console under the node agent properties page.我在节点代理属性页面下的管理控制台中找不到任何选项。

My problem is that the java process without any -Xmx setting will take up to 1/4 of the available memory on the server.我的问题是没有任何 -Xmx 设置的 java 进程将占用服务器上可用 memory 的 1/4。 That becomes a big problem with a server with a lot of memory.对于具有大量 memory 的服务器,这将成为一个大问题。

Does any one know which glassfish config file do I need to modify?有谁知道我需要修改哪个 glassfish 配置文件?

I could not find any thing relevant in the glassfish tree and using JAVA_OPTS env variable did not help.我在 glassfish 树中找不到任何相关的东西,并且使用 JAVA_OPTS env 变量没有帮助。

I have executed我已经执行了

grep -lr '\-Xm' ~/glassfish-3.1.2.2/ 

and this game me result: ~/glassfish-3.1.2.2/glassfish/domains/domain3/config/domain.xml there you can find这个游戏我的结果: ~/glassfish-3.1.2.2/glassfish/domains/domain3/config/domain.xml在那里你可以找到

    <jvm-options>-Xmx512m</jvm-options>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM