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

时间:2018-07-04 16:29:11

标签: c# asp.net azure iis azure-web-app-service

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

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

请参阅下面的堆栈跟踪。有人有主意吗?我已经向Microsoft支持部门询问了此问题,他们无法回答这一问题:-(

最坏的情况下,我可以阻止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()

Image of Mem and CPU usage. App Pool Recycled at July second and third

1 个答案:

答案 0 :(得分:0)

最后,问题确实出在句柄计数太大而无法为IIS处理。调查指出,Imagprocessor(http://imageprocessor.org)的文件缓存实现导致了此问题。

  • 您可以在Azure门户的“指标”部分查看有多少人处理您的App Service
  • 您可以在https://[your-app-service].scm.azurewebsites.net中找到详细信息。转到进程资源管理器->选择w3wp.exe的属性->选择“句柄”选项卡