本文介绍了停止IIS 7.5应用程序池回收的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在IIS 7.5中停止回收应用程序池?

How do stop application pools from recycling in IIS 7.5?

我已配置以下设置:


ProcessModel -> Idle Time-out (minutes) = 0
Recycling -> Regular Time Intervals (minutes) = 0

这些设置是否应该阻止应用程序池回收?

Are these settings enought to stop an application pool from recycling?

推荐答案

是的,那应该没问题假设你也使用私有内存限制= 0.
AppPool仍然有可能回收的原因,例如添加新的全局模块时,需要回收它以使配置更改生效,但你也可以禁用使用在Configuratoin更改时禁用回收。

Yes, that should be ok assuming you also use Private Memory Limit = 0.There are still reasons an AppPool could recycle, such as when adding a new Global Module, it will require to be recycled so configuration changes take effect, but you can also disable that using the "Disable Recycling on Configuratoin Changes".

最后,如果您正在运行ASP.NET,您应该考虑在配置更改(例如Web)时仍然会回收AppDomains。配置)发生。但这不应该影响AppPool只能运行其中的ASP.NET应用程序(例如会话状态),但这又取决于你问这个问题的原因,如果这很重要。

Finally if you are running ASP.NET you should consider that still AppDomains will recycle when changes in config (such as web.config) happen. But that should not affect the AppPool per'se only the ASP.NET applications running in it (such as Session State), but again it depends on why you ask this question if this is important or not.

这篇关于停止IIS 7.5应用程序池回收的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-21 21:10