tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: tomcat shutdown clarification
Date Tue, 14 Aug 2012 19:51:16 GMT
Hash: SHA1


On 8/14/12 3:20 PM, Caldarale, Charles R wrote:
>> From: Davis, Chad [] Subject: RE: tomcat
>> shutdown clarification
>> And how does the -force option affect this?  Will that kill the 
>> JVM regardless . . .
> Usually.  The -force option will invoke kill -9 on the Tomcat pid
> if Tomcat doesn't stop in the specified time, which defaults to
> five seconds, but may be specified as an argument to the
> script.  If the pid can't be determined, -force has no
> effect.
>> what factors impact how much time might pass before it's actually
>>  dead?
> Lots of things, including connections to other processes (e.g., 
> database servers), flushing of unwritten buffers to disk, how busy 
> the system is, etc.

I would say that the most likely thing(s) that would delay Tomcat's
shutdown are ServletContextListeners that do a lot of work.

If you (Chad) want to know what it happening to Tomcat while it's
shutting down (and taking forever to do so), you can take a thread
dump of the process and see what's going on.

- -chris
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools -
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message