tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jindong Li <Jindong...@solcorp.com>
Subject RE: Shutdown.sh does not work when long lasting operations, such as SQL Queries, are still active!
Date Mon, 02 Jun 2003 15:24:49 GMT
Just wondering if this option has been back ported into TC now?

 -----Original Message-----
From: 	Costin Manolache [mailto:cmanolache@yahoo.com] 
Sent:	Monday, February 10, 2003 3:04 PM
To:	tomcat-dev@jakarta.apache.org
Subject:	RE: Shutdown.sh does not work when long lasting operations,
such as SQL Queries, are still active!

Craig R. McClanahan wrote:

> It is OK for web applications to start threads -- as long as the web
> application cleans up after itself when the application is shut down (the
> easiest way to detect that is to create a ServletContextListener and wait
> for the contextDestroyed() method of your listener to be called).
> 
> The JVM running Tomcat shuts down when all non-daemon threads have been
> killed.  Tomcat properly cleans up all the threads that *it* creates -- it
> is up to your application to do the same.

I can backport the "-force" option from 3.3 - basically save the PID and 
then use kill if tomcat doesn't shut down gracefully.

Fact is many apps are not cleaning up - and having the whole server hunged 
and unable to restart for one bad app is not good.

Costin


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


############################################################################
#########
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
############################################################################
#########

##############################################################
This e-mail message has been scanned for Viruses and Contents
##############################################################

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message