简体   繁体   English

停止IIS 7.5应用程序池回收

[英]Stop IIS 7.5 Application Pool Recycling

How do stop application pools from recycling in IIS 7.5? 如何在IIS 7.5中停止回收应用程序池?

I have configured the following settings: 我配置了以下设置:

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

Are these settings enought to stop an application pool from recycling? 这些设置是否应该阻止应用程序池回收?

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". 是的,假设您还使用私有内存限制= 0,那应该没问题。仍然有一些原因可以让AppPool回收,例如添加新的全局模块时,它需要回收以便配置更改生效,但您也可以使用“禁用回收配置更改”禁用该功能。

Finally if you are running ASP.NET you should consider that still AppDomains will recycle when changes in config (such as web.config) happen. 最后,如果您正在运行ASP.NET,您应该考虑当配置中的更改(例如web.config)发生时,AppDomains仍会回收。 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. 但这不应该影响AppPool只能运行其中的ASP.NET应用程序(例如会话状态),但这又取决于你问这个问题的原因,如果这很重要。

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

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