OneClick tomcat process shuts itself down

book

Article ID: 207381

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

The Spectrum Oneclick java tomcat process will not stay running.  It keeps shutting itself down.  We see errors noting a memory leak like this in the catalina.out and/or 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)

Cause

Corrupt tomcat cache

Environment

Release : 20.2

Component : Spectrum Core / SpectroSERVER

Resolution

Reset the tomcat cache:

1.  Stop the OC tomcat process from $SPECROOT/tomcat/bin:  ./stopTomcat.sh
2.  Delete the $SPECROOT/tomcat/work folder:   rm -r work
3.  Start the OC tomcat process from $SPECROOT/tomcat/bin:  ./startTomcat.sh