This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat hanging process Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat hanging process" Watch "Tomcat hanging process" New topic
Author

Tomcat hanging process

Kerry Wilson
Ranch Hand

Joined: Oct 29, 2003
Posts: 254
About half the time I stop Tomcat, a process is hung. I usually have to kill this process with the kill command. Is there a specific reason for this, or a better way to kill it. I know there is a proc command that will kill all processes of an executable on some linux distros. However, it is not available on Red Hat. How have others dealt with this?


http://www.goodercode.com
SCJP 1.4
Kees Jan Koster
JavaMonitor Support
Rancher

Joined: Mar 31, 2009
Posts: 251
    
    5
Dear Kerry,

Tomcat hanging when you try to shut it down is usually due to daemon thread mismanagement. Most likely, your application starts a number of threads and does not kill these threads properly.

Take a thread dump when Tomcat hangs to find out what threads are still alive and need killing from Java.

Java-monitor, JVM monitoring made easy <- right here on Java Ranch
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tomcat hanging process