• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat Shutdown Issue

 
Narasimha Swami
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I have an issue with multiple tomcat instances' processes hanging over even on shutdown. I have fairly different configs for both the instances. But when I shutdown either of them sometimes one or other instance hangs over, which is not completely shutdown, they (hanged processes) just keep clogging up like this for a time. In some bad time they would have consumes all of the heap and I have no room to stop and start the instance. I have to issue manual kill for all the processes. I know there are several reasons for this happening can some one tell the few of them so that I can figure out and fix this bug. Although Tcat seems to be an fair option, but I am looking for a quick fix for now. Thank in advance.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're better off asking this where the Tomcat experts hang out - in the Tomcat forum. I'll move this thread over there.

Tomcat itself doesn't have any shutdown problems that I know of. However, if even a single user application thread refuses to terminate itself when requested, that thread can hold the entire Tomcat server hostage, since until all threads are terminated, the JVM cannot terminate itself.

So you need to look at your applications.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used the Tomcat Management app to detect some long-running request Threads that never terminated.

Working backward from that information I found Threads waiting for a resource that no-longer existed.

Bill
 
Narasimha Swami
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ya I found it out as soon as I posted the question. I have the app deployed in the tomcat instance which starts lots of threads. May be these threads have to be turned down. For now I just placed an small code snippet in start/stop init script to notify me if tomcat has not properly shut down. So that I can bring it down using kill command. Although forcing kill on the process is a bad idea.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic