tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Tomcat not shutting down properly
Date Mon, 17 Jun 2002 16:55:32 GMT
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 []
>Sent: Monday, June 17, 2002 12:31 PM
>To: Tomcat Users List
>Subject: Tomcat not shutting down properly
> 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-
>For additional commands, e-mail: <mailto:tomcat-user-

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message