IIS应用程序池回收触发器:没有足够的存储空间可用于完成此操作(Azure应用程序服务)

我在Azure应用服务上运行ASP.Net网站,每次应用程序池回收发生时都会挂起。

我已经检查过,可用的存储空间,我使用的是50 Gb中的大约5个,所以这应该不是问题。

请参阅下面的堆栈跟踪。 有没有人有想法? 我已经向微软支持部门提出了这个问题,他们无法回答这个问题:-(

最糟糕的情况是,我可以阻止System.Diagnostics.Eventing.EventProvider.EtwRegister()调用吗?

非常感谢对这一个的帮助!

 Exception message: The pre-application start initialization method Start on type EnvSettings.SettingsProcessor threw an exception with the following error message: The type initializer for 'Microsoft.Web.Hosting.Tracing.AntaresEventProvider' threw an exception.. at System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures) at System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) at System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) at System.Web.Compilation.BuildManager.ExecutePreAppStart() at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) The type initializer for 'Microsoft.Web.Hosting.Tracing.AntaresEventProvider' threw an exception. at Microsoft.Web.Hosting.Tracing.AntaresEventProvider.EventWriteDWASGenericLog(String LogStatement, String SiteName) at EnvSettings.SettingsLogger.Trace(String format, Object[] args) at EnvSettings.SettingsProcessor.Start() Not enough storage is available to complete this operation at System.Diagnostics.Eventing.EventProvider.EtwRegister() at System.Diagnostics.Eventing.EventProvider..ctor(Guid providerGuid) at Microsoft.Web.Hosting.Tracing.EventProviderVersionTwo..ctor(Guid id) at Microsoft.Web.Hosting.Tracing.AntaresEventProvider..cctor() 

Mem和CPU使用的图像。 应用程序池在7月第二和第三次回收

最后问题确实是句柄数量太大而无法处理IIS。 调查指出,Imagprocessor( http://imageprocessor.org )的File Cache实现导致了这个问题。

  • 您可以在Azure门户的指标部分中查看有多少处理App Service
  • 您可以在https:// [your-app-service] .scm.azurewebsites.net上找到详细信息。 转到Process Explorer – >选择w3wp.exe的属性 – >选择Handles Tab