It's all about the answers!

Ask a question

Any idea why stopping Tomcat almost always hang ?


long TRUONG (3654118146) | asked Oct 26 '14, 11:21 p.m.
RTC/RRC 4.0.6, all (JTS/RTC/RRC) on one server host. Windows/Tomcat

Whenever we try to shut down or restart Tomcat7, stopping would most likely fail and Tomcat hangs, we cannot start of stop Tomcat and have to reboot the server host. Anyone has run into the same issue, and found an answer ?




2 answers



permanent link
Daniel Vaganek (7358) | answered Mar 18 '15, 10:55 a.m.
I have this issue as well.  Seems to occur when the memory is maxed out.
What I do is open task manager and kill the process.
Seems to work.


permanent link
Donald Nong (14.5k414) | answered Oct 27 '14, 1:45 a.m.
It seems that when you ask Tomcat to stop gracefully, it does not behave so gracefully. In my experience (on Linux and lightly used though), sometimes I have to wait more than 10 minutes for Tomcat to stop by itself. I guess it all depends what threads are running when the stop command is issued - some threads react quickly and some thread get stuck.
Apparently you can use "-force" on Linux and the catalina.sh script will call the "kill" command when the set timeout is reached. On Windows, you will need to implement similar approach by yourself.
http://www.linuxquestions.org/questions/linux-software-2/how-to-stop-tomcat-6-0-a-940165/
http://serverfault.com/questions/546360/how-to-force-tomcat-to-shutdown-after-x-number-of-seconds-on-windows

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.