简体   繁体   English

当工作进程无响应时,如何防止IIS回收应用程序池

[英]How to prevent IIS from recycling Application Pool when a worker process is unresponsive

We have a WCF service which handles great amount of requests. 我们有一个WCF服务,可以处理大量请求。

As I discovered, when the number of cuncurrent requests exceed the limit of max cuncurrent connections, the consequent requests will be queued up to be executed later. 正如我发现的那样,当当前请求的数量超过最大当前连接的限制时,随后的请求将排队等待稍后执行。 if time-out happens before these requests have a chance to execute, IIS determins worker process in unresponsive and kills it (or recycles the app pool). 如果在这些请求有机会执行之前发生超时,则IIS会确定工作进程无响应,并杀死它(或回收应用程序池)。

The recycling process takes about one minute and meanwhile the service will be down which is a big problem for us. 回收过程大约需要一分钟,同时服务将中断,这对我们来说是个大问题。

Regardless of the cause of timeout and long response time in the code (which we are already working on it), my question is this: 不管代码中的超时和响应时间长的原因(我们已经在处理),我的问题是:

If we define more than one worker-process for this app-pool, what will happen if one of worker-processes is in the same situation? 如果我们为此应用程序池定义多个工作进程,那么如果其中一个工作进程处于相同情况,会发生什么? Does IIS recycle the app-pool or the particular worker-process will be killed and other ones keep serving the requests? IIS是否会回收应用程序池,否则特定的工作进程将被杀死,而其他工作进程将继续处理请求?

If you have a several working processes in the app-pool (so called web garden) and one of them exceeds the limit of requests/memory/does not respond on ping, all of them will be recycled. 如果您在应用程序池中有多个工作流程(所谓的网络花园),并且其中一个超过了请求/内存/对ping不响应的限制,则所有这些流程都将被回收。

http://www.treeloop.com/blog/iis-application-domain-and-pool-recycling http://www.treeloop.com/blog/iis-application-domain-and-pool-recycling

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

相关问题 IIS应用程序池中禁用工作进程回收的影响 - impact of disabling recycling of worker process in IIS application pool 应用程序池回收对辅助进程和WebEventProvider的影响 - Effects of Application pool recycling on worker process and WebEventProvider IIS 工作进程 - 应用程序池 Memory 问题 - IIS Worker Process - Application Pool Memory Issues 检测IIS工作进程是否死锁并回收应用程序池 - Detect that a IIS Worker Process is deadlocked and recycle the Application Pool 停止应用程序池时,哪些超时控制工作进程关闭 - What timeouts govern worker process shutdown when stopping an application pool 如何防止IIS工作进程中长时间运行的请求? - How to prevent long running requests in an IIS worker process? 如何在iis中因工作进程而100%防止CPU使用率 - How prevent CPU usage 100% because of worker process in iis 从ASP.NET配置禁用IIS7池回收 - Disable IIS7 Pool recycling from ASP.NET config IIS 7工作进程瓶颈,大量等待应用程序池ASP.NET 3.5 + 2.0下的请求 - IIS 7 worker process bottleneck, large number of awaiting requests under application pool ASP.NET 3.5 + 2.0 如何防止共享主机上的IIS应用程序池中的空闲超时 - How to prevent Idle Timeout in IIS Application Pool on a shared host
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM