tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: Tomcat not shutting down properly
Date Mon, 17 Jun 2002 16:55:32 GMT
Howdy,
This has been discussed a bunch of times ;)  Post 4.0.1, tomcat doesn't
do a System.exit() call when shutting down.  Accordingly, if you have
created non-daemon threads, the JVM will not stop them.  If you create
such threads in your apps, it is your responsibility to stop them
properly in the destroy() methods, context destroy event (you need a
context or lifecycle listener) for this, etc.

Alternatively, you can do stuff like recording the process ID when
tomcat is started, and then killing it as part of shutdown.  There are
threads (recently) on this list about this.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Mark O'Driscoll [mailto:markonm@eircom.net]
>Sent: Monday, June 17, 2002 12:31 PM
>To: Tomcat Users List
>Subject: Tomcat not shutting down properly
>
>shutdown.sh seems to silently fail (4.0.3 on solaris) when one of my
>servlets has created its own threads. The java process remains running.
>
>Any ideas?
>
>- Mark
>
>
>--
>To unsubscribe, e-mail:   <mailto:tomcat-user-
>unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:tomcat-user-
>help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message