File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
 
Consider Paul's rocket mass heater.
 
subject: Tomcat hanging process
 
Similar Threads
Tomcat Shutdown Issue
Can't see the tomcat server process with ps
JSP, Apache, tomcat problem
kill -9 -1
JSP, Apache, tomcat problem