The Spectrum Oneclick java tomcat process will not stay running and keeps shutting itself down after restart. Errors such as the following noting a memory leak are seen in the OneClick server log (catalina.out/ stdout.log):
25-Jan-2021 14:50:42.283 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [spectrum] appears to have started a thread named [Thread Scheduler] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
com.aprisma.util.thread.ThreadScheduler.run(ThreadScheduler.java:170)
java.lang.Thread.run(Thread.java:748)
25-Jan-2021 14:50:42.285 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [spectrum] appears to have started a thread named [Thread Scheduler] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
com.aprisma.util.thread.ThreadScheduler.run(ThreadScheduler.java:170)
java.lang.Thread.run(Thread.java:748)
25-Jan-2021 14:50:42.285 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [spectrum] appears to have started a thread named [Thread-8] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
com.aprisma.util.TimerThread.mainLoop(TimerEx.java:607)
com.aprisma.util.TimerThread.run(TimerEx.java:535)
DX NetOps Spectrum Release : 20.2 or later
Corrupt tomcat cache
Reset the tomcat cache:
./stopTomcat.sh
rm -r $SPECROOT/tomcat/work
./startTomcat.sh