Hi, As you probably know, the shutdown command doesn't go through the connectors normally -- it just makes a localhost connection to the shutdown port (8005 by default).
The most common reason for failed shutdowns as you describe, i.e. Tomcat closing but some threads (and therefore the JVM process) still alive, is your app (or libraries used by your app) starting up non-daemon threads and not shutting them down on exit. The JVM cannot shut those down for you, and it cannot exit. Do a CTRL-BREAK (Windows) or send a SIGQUIT (Unix) to the JVM process to see exactly what threads are active. Figure out where in your code they come from, and then modify you app so ensure these threads are stopped on shutdown. Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: Roberto Cosenza [mailto:[EMAIL PROTECTED] >Sent: Thursday, September 09, 2004 8:45 AM >To: [EMAIL PROTECTED] >Subject: Tomact + jk2: won't shutdown > >Have anybody experienced problems with Tomcat not responding to the >shutdown command when it is running a jk2 connector? >If I remove the connector, everything is fine. >With the connector when I run shutdown.sh the server goes down but som >threads are still alive. >Can anybody help me in debugging the problem? >(Strange enough: we have an other box which is running exactly the same >configuration and it works perfectly) > >-- >Roberto Cosenza >Infoflex Connect AB, Sweden >Tel: +46-(0)8-55576860, Fax: +46-(0)8-55576861 >-- >Nordic Messaging Technologies is a trademark of Infoflex Connect. >Please visit www.nordicmessaging.se for more information about our >carrier-grade messaging products. > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
