简体   繁体   中英

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.

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. That becomes a big problem with a server with a lot of memory.

Does any one know which glassfish config file do I need to modify?

I could not find any thing relevant in the glassfish tree and using JAVA_OPTS env variable did not help.

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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