Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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 ?




0 votes



2 answers

Permanent link
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

0 votes


Permanent link
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.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Oct 26 '14, 11:21 p.m.

Question was seen: 24,218 times

Last updated: Mar 18 '15, 10:55 a.m.

Confirmation Cancel Confirm