简体   繁体   English

Tomcat优雅取消部署

[英]Tomcat graceful undeploy

I haven't found documentation confirming that the undeploy action from Tomcat Manager is a graceful undeploy (that is, it finishes serving current requests). 我还没有找到文档来确认Tomcat Manager的取消部署操作是正常的取消部署(也就是说,它完成了对当前请求的处理)。 Can someone more knowledgeable confirm that this is indeed the case? 有知识的人可以确认确实如此吗?

Yes, undeploy is graceful as long as the requests finish in a timely manner (the default is 10 seconds but is configurable). 是的,只要请求及时完成(默认为10秒,但可配置),取消部署是正常的选择。

Requests that go beyond 10 seconds will finish cleanly unless they try to load a resource (class, static file, etc.) after the 10 seconds have passed. 超过10秒的请求将干净地完成,除非经过10秒后尝试加载资源(类,静态文件等)。 In that case they will fail with a ClassNotFoundException or similar. 在这种情况下,它们将因ClassNotFoundException或类似原因而失败。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM