【问题标题】:Can I disable overwhelming change notifications in IIS我可以在 IIS 中禁用压倒性的更改通知吗
【发布时间】:2014-10-15 02:20:17
【问题描述】:

我偶尔会收到以下导致应用程序池被回收的事件:

_shutDownMessage=CONFIG change
HostingEnvironment initiated shutdown
Overwhelming Change Notification in 
Change Notification for critical directories.
Overwhelming Change Notification in App_LocalResources
Change Notification for critical directories.
Overwhelming Change Notification in App_Browsers
Change Notification for critical directories.
Overwhelming Change Notification in App_Code
Change Notification for critical directories.
Overwhelming Change Notification in App_WebReferences
Change Notification for critical directories.
Overwhelming Change Notification in App_GlobalResources

有没有办法防止这些更改回收应用程序池?

我们将在几天后投入生产,所以我现在需要一个快速解决方案,直到我们有时间解决导致此问题的原因。

【问题讨论】:

  • 您使用的是什么操作系统版本、IIS 版本和 .NET 版本?
  • Windows 7、Windows Server 2008、IIS 6+(主要是 IIS 7)和 .net 4。
  • 好的...如果是 .NET 2.0,那么 thisthis 可能会有所帮助。但我怀疑它们是否适用于这种情况。
  • 您是否对这些目录中的文件进行了任何更改?使用进程监视器(来自 Sysinternals)并检查导致通知的进程。
  • 我已经检查了所有这些目录,我们的应用程序没有更改其中任何一个。这就是为什么我认为是在我们的应用程序之外进行更改的原因。没有运行防病毒软件,所以不是这样。我现在只需要一种方法来关闭检查。

标签: c# asp.net iis


【解决方案1】:

这可能是由 ASP.Net 中不同的 FCN 模式引起的,并且特定的 MS 错误也会导致这种情况发生。 FCN(文件更改通知)在 ASP.Net 级别和 IIS 级别都受到控制。

您可以更改 web.config 中的 fcnMode 以减少监控,我们现在将“单一”模型应用于我们的大多数网站,尤其是在 Azure 上运行时,因为它是基于网络的文件存储。但是,更改 IIS 文件更改观看是另一回事。

这里有一篇关于 FCN 及其不同模式的详细信息:http://shazwazza.com/post/all-about-aspnet-file-change-notification-fcn/

这是 IIS FCN 问题的 MS 修补程序(出于某种疯狂的原因,这是可选的):https://support.microsoft.com/en-us/kb/911272

这将讨论如何禁用 IIS 的 FCN,如果您有权这样做:http://imageresizing.net/docs/fcnmode

另外值得注意的是,在 web.config 中将 fcnMode 更改为 Single 不会影响任何 IIS 虚拟文件夹,只能完全禁用 fcn 才能对虚拟文件夹产生任何影响。

【讨论】:

    猜你喜欢
    • 2011-08-05
    • 1970-01-01
    • 2020-04-19
    • 2011-10-24
    • 1970-01-01
    • 1970-01-01
    • 2019-05-05
    • 2015-03-25
    • 2023-04-11
    相关资源
    最近更新 更多