• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat hanging process

 
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
JavaMonitor Support
Posts: 251
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic