简体   繁体   English

http请求超时WebSphere Application Server

[英]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.

相关问题 通过Websphere Application Server管理控制台设置HTTP请求标头 - Set http request headers via websphere application server admin console Websphere Application Server 7中的HTTP标头Mime类型 - HTTP Header Mime Type in Websphere Application Server 7 每个第一个请求都会给出错误500。Websphere应用程序服务器 - Every first request gives an Error 500. Websphere application server Websphere应用程序服务器处理(WAS 8.0)多少个并发请求? - How many concurrent request does the websphere application server process (WAS 8.0)? Websphere Application Server中的XAException - XAException in Websphere Application Server Websphere Application Server中需要Websphere MQ类 - Websphere MQ classes needed in Websphere Application Server 超时http请求? 安卓系统 - Timeout http request? Android 服务器长时间保持连接时,http请求超时吗? - will http request timeout when server hold the connection for a long time? 是否可以将IBM HTTP Server设置为非IBM Websphere应用程序服务器的前端,并且IBM是否支持它? - Is it possible to setup the IBM HTTP server as the front end for a non IBM Websphere application server and is it supported by IBM? 记录Websphere Application Server 7的framewok - Logging framewok for Websphere Application Server 7
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM