[英]http request timeout WebSphere Application Server
I am using WebSphere Application Server 8.5.5.3. 我正在使用WebSphere Application Server 8.5.5.3。 The maximum number of web container threads is set to 100. There are multiple applications installed on the server. Web容器线程的最大数量设置为100。服务器上安装了多个应用程序。 At times one of the application slows down and hangs all the web container threads. 有时,应用程序之一会变慢并挂起所有Web容器线程。 That results in requests from all other applications getting piled up waiting for web container threads. 这导致来自所有其他应用程序的请求堆积成堆,以等待Web容器线程。 Is there a property that can timeout the waiting requests? 是否有可以使等待的请求超时的属性?
I do not want to timeout a request, if the request processing has started. 如果请求处理已开始,我不想使请求超时。 There are some long running requests and those should not timeout. 有一些长时间运行的请求,这些请求不应超时。 Please suggest. 请提出建议。
Try to use async servlet, like below for your long running requests: 尝试对您的长期运行请求使用异步Servlet,如下所示:
@WebServlet(asyncSupported = true, urlPatterns = { "/AsyncServlet" })
public class AsyncServlet extends HttpServlet {
...
}
Asynchronous servlet in WebSphere Application Server will return thread to the web container pool, so it can be used to handle other requests. WebSphere Application Server中的异步servlet将把线程返回到Web容器池,因此可以用来处理其他请求。
For more information how to develop async servlet check chapter 5 in the WebSphere Application Server Liberty Profile Guide for Developers . 有关如何开发异步servlet的更多信息,请参阅《 WebSphere Application Server Liberty Profile Guide for Developers》中的第5章。 Although it is related to the Liberty Profile same code can be used in the normal WebSphere Application Server. 尽管它与Liberty Profile有关,但是相同的代码可以在常规WebSphere Application Server中使用。
For information how to configure asynchronous processing in web container check Web container settings 有关如何在Web容器中配置异步处理的信息,请检查Web容器设置
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.