Changing the Web Server memory in the Spectrum OneClick Web Server Memory page does not take affect after restarting tomcat

Document ID : KB000045102
Last Modified Date : 04/12/2018
Show Technical Document Details
Issue:

After changing the Web Server memory in the Spectrum OneClick Web Server Memory page and restarting tomcat, the OneClick is still using the default value configured and not the new value configured. The $SPECROOT/custom/common/config/ tomcat-server-config.xml file is created as expected with the new memory setting but the -Xmx parameter in the $SPECROOT/tomcat/bin/catalina.sh file is not updated with the new memory setting.

Environment:

Spectrum OneClick 10.0, 10.1, 10.1.1 and 10.1.2 running on Linux

Resolution:

This is not an issue with Spectrum 10.2.0 and above.

Additional Information:

WORKAROUND: Manually edit the $SPECROOT/tomcat/bin/catalina.sh file and change the -Xmx parameter to reflect the new memory setting and then restart tomcat.

1. Make a backup of the current $SPECROOT/tomcat/bin/catalina.sh file

2. Look for the following line:

JAVA_OPTS="-DOneClick -server -Xmx4096M -XX:+HeapDumpOnOutOfMemoryError -Djava.awt.headless=true -Djavax.net.ssl.trustStore=$SPECROOT/custom/keystore/cacerts -Dfile.encoding=UTF-8 -Dcom.sun.management.jmxremote -Dorg.apache.coyote.USE_CUSTOM_STATUS_MSG_IN_HEADER=true"

3. Change the -Xmx parameter to the new memory setting

4. Restart tomcat