My webapp runs on dedicated Tomcat instances on various platforms and hardware--mainly x86 Linux and Windows, but also Solaris and I develop on OS X. I've been generally surprised by the variance in shut down times between OSes. And tomcat generally seems slower so shutdown than other non-trivial services (httpd, mysql, squid.) So, a series of questions:
- How long should tomcat take to shut down?
- What causes tomcat to take longer to shut down than a simple "Hello World" servlet? What is a big impact, what is a little impact?
- Why do I see such large discrepancies between platforms?
I'd really like specifics. I am half convinced that there are things in code I can do to improve shutdown times.
Times are generally no longer than 10-20s on some instances (high volume, RHEL4), but that seems excessively long to me.