You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2001/10/31 17:34:26 UTC

DO NOT REPLY [Bug 4536] - Tomcat doesnt kill threads while shutdown

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4536>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4536

Tomcat doesnt kill threads while shutdown

marc.saegesser@apropos.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From marc.saegesser@apropos.com  2001-10-31 08:34 -------
If I understand correctly, your servlet starts a couple new threads in its init
() method.  Then you attempt to shutdown Tomcat, but the VM doesn't terminate.  
You then get a socket bind error when you try to start Tomcat again.

The problem is most likely that your threads are not flagged as deamon 
threads.  The Java VM will remain alive as long as there is at least one non-
daemon thread so the Tomcat VM will never terminate unless you either 
explicitly terminate these threads or set setDeamon(true) when you create them.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>