问题描述
如何在 IIS 7.5 中阻止应用程序池回收?
我已经配置了以下设置:
ProcessModel -> 空闲超时(分钟)= 0回收 -> 固定时间间隔(分钟)= 0这些设置是否足以阻止应用程序池回收?
是的,假设您还使用 Private Memory Limit = 0,那应该没问题.AppPool 仍然存在回收的原因,例如在添加新的全局模块时,需要回收它以使配置更改生效,但您也可以使用禁用配置更改时的回收"来禁用它.
最后,如果您正在运行 ASP.NET,您应该考虑到当配置(例如 web.config)发生更改时,AppDomains 仍然会回收.但这不应该只影响 AppPool 本身只影响其中运行的 ASP.NET 应用程序(例如会话状态),但同样取决于您问这个问题的原因是否重要.
How do stop application pools from recycling in 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".
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 应用程序池回收的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!