Reputation: 1640
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?
Upvotes: 16
Views: 9366
Reputation: 15446
Tomcat supports unloadDelay
which waits till the configured time for unloading servlets.
This should configured in context.xml
as follows:
<context unloadDelay="10000">
References:
Upvotes: 16
Reputation: 5380
IT just kill the request and break the request-response link. And you get..
Unable to connect
Browser can't establish a connection to the server at Host:port.
The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer's network connection.
If your computer or network is protected by a firewall or proxy, make sure that Browser is permitted to access the Web.
That can not be handled.
Upvotes: 1