Hi,
The Tomcat shutdown script provides support for a -force option, which
does a kill -9 on the process ID after the normal shutdown.

If you want something beyond that, do it yourself.  Accounting for
reasons like an OOME or your own code spawning non-daemon threads is
outside Tomcat's scope.

"If it takes too long" is a vague criterion at best, as conditions and
use-cases wildly differ.

Yoav Shapira http://www.yoavshapira.com


>-----Original Message-----
>From: Kevin A. Burton [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, December 08, 2004 3:26 PM
>To: Tomcat Users List
>Subject: Tomcat synchronous shutdown?
>
>Currently Tomcats shutdown model is to "politely request" that the
>server shutdown.
>
>Most of the time Tomcat is friendly and will shutdown as requested but
>sometimes it won't do as its told and run forever.  This seems to
happen
>if a shutdown hook has problems or it runs out of memory.  This is
>happening to us now that we're on 5.5.
>
>Is there a way to:
>
>1. Make Tomcat's ./bin/shutdown.sh  script block until it shutdown
>2. Return a status code about the shutdown success
>3. Optionally terminate the java process with a -9 if it takes too long
>
>The same should happen for Tomcat startup btw...
>
>Thoughts?
>
>Kevin
>
>--
>
>Use Rojo (RSS/Atom aggregator).  Visit http://rojo.com. Ask me for an
>invite!  Also see irc.freenode.net #rojo if you want to chat.
>
>Rojo is Hiring! - http://www.rojonetworks.com/JobsAtRojo.html
>
>If you're interested in RSS, Weblogs, Social Networking, etc... then
you
>should work for Rojo!  If you recommend someone and we hire them you'll
>get a free iPod!
>
>Kevin A. Burton, Location - San Francisco, CA
>       AIM/YIM - sfburtonator,  Web - http://peerfear.org/
>GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to