Hi, I'm running Tomcat 6.0.26 on Solaris 10 and have a question about what exactly happens during Tomcat graceful shutdown? I guess first thing it does is stop accepting new sessions on the listening ports. Sessions only or it stops accepting new requests from the already established sessions? Does it wait for the current sessions to end (I don't think so since this might take very long time) or just for the servelets to finish their current requests? What happens exactly with the servlets and the threads? In general, how the threads and servlets are being destroyed during graceful shutdown?
When I issue the following command from the unix shell: # $TOMCAT_HOME/bin/catalina.sh stop 600 I can still see the server being shut down in less than 10 seconds although I specify 10 minutes delay. Does that mean that the server has already shut down all the resources properly and doesn't have to wait for 10 minutes? Is the unloadDelay specified in the application Context the only wait of controlling the shutdown process (the servlet unload time)? How can I make sure that all the requests finish before the server shutdown? Thank you very much for your help.