OneClick server performance issues or failures occur when the Java Virtual Machine (JVM) lacks sufficient memory. Logs such as stdout.log (Windows) or catalina.out (Linux) may show heap allocation failures.
Symptoms:
java.lang.OutOfMemoryError: Java heap space insufficient memory for the Java RuntimeHere is an example of the heap errors:
java.lang.OutOfMemoryError: Java heap space
Dumping heap to java_pid46200.hprof ...
Heap dump file created [4685398829 bytes in 147.345 secs]
Dec 29, 2018 10:09:34.111 - TomcatHealthWatcher stopping: full thread dump
Exception in thread "http-nio-8080-exec-80" Exception in thread "http-niohpro-8080-exec-78" Exception in thread "Timer-0" Exception in thread "http-nio-8080-ClientPoller-0"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "http-nio-8080-exec-76"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "http-nio-8080-exec-86"
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
However, there are many other cases where the memory just needs to be increased.
Java heap out of memory messages are generated when the application requires more memory than currently configured. The default configuration (4GB in Spectrum 10.2+) is often insufficient for large environments or those with multiple integrations.
Adjust the Tomcat heap size based on the available Operating System RAM. Ensure no other major applications are sharing the server resources.
General RAM Guidelines:
If the GUI is inaccessible, update the configuration files directly:
$SPECROOT/tomcat/bin directory.OneClickService.conf. Locate the -Xmx parameter and update the value (e.g., -Xmx16384M).catalina.sh. Update the JAVA_OPTS or -Xmx parameter.If Tomcat continues to fail at the higher allocation or generates a crash file (.hprof), contact Broadcom Support