OneClick tomcat process shuts itself down
search cancel

OneClick tomcat process shuts itself down

book

Article ID: 207381

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

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)

Environment

DX NetOps Spectrum Release : 20.2 or later

Cause

Corrupt tomcat cache

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 $SPECROOT/tomcat/work

  3. Start the OC tomcat process from $SPECROOT/tomcat/bin:  

    ./startTomcat.sh