RE: Tomcat synchronous shutdown?

2004-12-09 Thread Shapira, Yoav
Hi, Will tomcat wait until time consuming requests are completed before shutting down? No. Yoav Shapira http://www.yoavshapira.com This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or

RE: Tomcat synchronous shutdown?

2004-12-09 Thread Shapira, Yoav
Hi, Too long can be defined in a configuration file. It could be, and you're welcome to go ahead and do it. Waste of time. The major problem is that Tomcat can't do a 'restart'. For example with mysql I can do a /etc/init.d/mysql restart and it will block until stop runs... then start. If

Re: Tomcat synchronous shutdown?

2004-12-09 Thread Kevin A. Burton
Shapira, Yoav wrote: The semantic of restart only if you feel like it is useless IMHO. You either want a restart or you don't. If there's an error serious enough to prevent shutdown, you want to look into it anyways. But since your use-case apparently calls for this functionality, go ahead, do

Re: Tomcat synchronous shutdown?

2004-12-09 Thread Bill Barker
Kevin A. Burton [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Shapira, Yoav wrote: The semantic of restart only if you feel like it is useless IMHO. You either want a restart or you don't. If there's an error serious enough to prevent shutdown, you want to look into it anyways.

Tomcat synchronous shutdown?

2004-12-08 Thread Kevin A. Burton
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

RE: Tomcat synchronous shutdown?

2004-12-08 Thread Shapira, Yoav
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

Re: Tomcat synchronous shutdown?

2004-12-08 Thread Kevin A. Burton
Shapira, Yoav wrote: 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

Re: Tomcat synchronous shutdown?

2004-12-08 Thread Roberto Cosenza
Will tomcat wait until time consuming requests are completed before shutting down? /rob - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 9:36 PM Subject: RE: Tomcat synchronous shutdown? Hi, The Tomcat