It's all about the answers!

Ask a question

jvm.options are not respected for Xms, Xmx, and Xmn


Kenny Smith (302513) | asked Dec 18 '22, 10:14 a.m.

 I have a new server that is not respecting my settings for jvm.options. I'm on 7.0.2 SR1, on Linux. When I add the following to the jvm.options: Xms=8GB, Xmx=8GB, Xmn=2GB, it ignores it and appears to override with Xms=4GB, Xmx=4GB, Xmn=1GB. 

The server.startup does not have any settings for it other than in the following stanza:


When run in a Jazz build, a 32-bit JRE is used, so don't set 64-bit options
if [ -z "$_RUNNING_IN_JAZZ_BUILD" ]; then
    JAVA_OPTS="$JAVA_OPTS -Xmx4G"
    JAVA_OPTS="$JAVA_OPTS -Xms4G"
    JAVA_OPTS="$JAVA_OPTS -Xmn1G"
fi

</pre>

Obviously, this is a server, not a Jazz build. Only if I explicity add the settings to server.startup, will it obey the JVM settings. Any idea why this is happening?

One answer



permanent link
Kenny Smith (302513) | answered Dec 19 '22, 9:51 a.m.

 FYI, removing that stanza allows it to adhere to the settings in jvm.options. Thus, the variable $_RUNNING_IN_JAZZ_BUILD is returning as true when the server is running. This is a defect.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.