What to do when java heap errors appear in the OneClick server stdout.log or catalina.out log file.

Document ID : KB000049952
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

In the OneClick server stdout.log or catalina.out log file java heap out of memory errors are seen.

Solution:

Java heap out of memory message can be generated when more memory is needed then is configured. View the memory usage through the Administration - Debugging page of the OneClick URL, under web server memory.

If Network Configuration Manager (NCM) is involved, increase the values through the NCM processd idb ticket in $SPECROOT/lib/SDPM/partslist/NCMSERV.idb

If NCM is not involved, then the values should be increased for the tomcat server itself. Manually editing the value will depend on the operating system:

  • On Windows the configuration file to edit is $SPECROOT\tomcat\bin\oneclickservice.conf.
    The value to edit is jvm_opt=-Xmx512M increase the value to 1024 to start with but do not go higher than 9999.

  • On UNIX it's in $SPECROOT/tomcat/bin/Catalina.sh
    The value to edit is jvm_opt=-Xmx512M increase the value to 1024 to start with but do not go higher than 9999.

Please also note that on Unix the OneClick service is called OneClick and will look like this in a process table listing:

# ps -ef |grep -i oneclick
spectrum 266 252 0 May 25 ? 91:12 /usr/SPECTRUM/Java/bin/java -DOneClick -Xmx512M -XX:+HeapDumpOnOutOfMemoryError

If you make the change in the GUI, the tomcat server cycles itself. If you make the changes manually, you will have to also cycle the tomcat server for the change to take effect.