We are in the process of migrating our application from Websphere to Tomcat. One thing I have noticed is that when I issue the shutdown.sh
for Tomcat, the process still keeps running. Initially I thought the process would end itself in a minute or two, but even after 5 minutes I still see the process alive. So I have to kill the process using kill -9
and then go for a start.
While shutting down I do see a lot of errors getting thrown on the console like:
org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [some_application] appears to have started a thread named [Timer-0] but has failed to stop it.
The code consists of webapps which are made a mix of servlets, spring and a whole bunch of threads are started when the application boots up.
Is there something I can do configuration-wise that would take care of this? Or this needs some code-work to compensate for something that WebSphere provided out-of-the-box?