Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat hanging process

 
Kerry Wilson
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Kees Jan Koster
JavaMonitor Support
Rancher
Posts: 251
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic