What happens to http requests that are being processed when you stop or restart tomcat in the "normal" way? Will they be processed until the response is finished or are the http-threads interrupted? Is there a way to configure graceful stopping?
Tomcat supports unloadDelay
which waits till the configured time for unloading servlets.
This should configured in context.xml
as follows:
<context unloadDelay="10000">
References:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With