I am having an issue with Tomcat shutdown. Requests arriving while the servlet container is shutting down seem to be held up by the connector until container shutdown finishes.
The problem is, our servlet can take up to a minute to shut down, meaning connections arriving during this period are held for up to a minute.
Is this behavior correct/expected?
Wouldn't ideal Tomcat shutdown behavior be to
This is hardly desirable behavior. When shutting down it should stop accepting new connections but I guess there was some technical challenges in implementing it. Moot, anyway as noted.
How we got past it is this:
In our case we had a way to tell the server to reloads their configs. Other servers seem to have same https://serverfault.com/questions/108261/how-to-make-modification-take-affect-without-restart-nginx