Any idea why stopping Tomcat almost always hang ?
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
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 |
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. |
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.