File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat hanging process" Watch "Tomcat hanging process" New topic

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?
SCJP 1.4
Kees Jan Koster
JavaMonitor Support

Joined: Mar 31, 2009
Posts: 251
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
I agree. Here's the link:
subject: Tomcat hanging process
It's not a secret anymore!