tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: tomcat shutdown clarification
Date Tue, 14 Aug 2012 19:51:16 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

On 8/14/12 3:20 PM, Caldarale, Charles R wrote:
>> From: Davis, Chad [mailto:Chad.Davis@emc.com] 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
> shutdown.sh 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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAqrDQACgkQ9CaO5/Lv0PCktgCfYaEetCtTeBZxQRxHrgH2Bigs
1ZkAn1xQKqIg34DjddpGKT2cbBdS4I6q
=5zJD
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message