由于“慢请求"限制,Azure 网站不断重启 [英] Azure website constantly restarts due to 'Slow Requests' limit
问题描述
我在西欧和标准模式下设置了一个 azure 网站.今天突然在 2014 年 1 月 30 日凌晨 03:00 UTC 它开始不断重启应用程序池.ShutdownReason 是 HostingEnvironment.我在 eventlog.xml 中有很多这样的事件:
<事件><系统><提供者名称="W3SVC-WP"/><EventID>2299</EventID><Level>3</Level><任务>0</任务><关键词>关键词</关键词><TimeCreated SystemTime="9:14:50 AM"/><EventRecordID>15807234</EventRecordID><频道>应用</频道><计算机>RD00155D3A08C6</计算机><安全/></系统><事件数据><数据>由于慢请求"限制,工作进程请求回收.</数据></事件数据></事件>
我找不到有关慢速请求"限制的任何信息.
这些重启与代码无关,一周内没有任何改变.只有将网站模式切换为共享对我有帮助.
这是第二次发生,我不明白这种行为的原因.
我收到了 Windows Azure 网站团队的回复 在 MSDN 论坛上:
<块引用>我们已将此问题确定为我们最近发布的新自动修复功能中的一个错误.请在您的 web.config 文件中添加以下内容以暂时缓解此问题.
<配置><system.webServer><监控><触发器><slowRequests timeTaken="02:00:00" count="1000000000" timeInterval="00:01:00"/></触发器><actions value="LogEvent"/></监控></system.webServer></配置>
<块引用>
我们正在努力尽快发布修复程序.
对给您带来的不便深表歉意.
Windows Azure 网站团队
更新:该解决方法仅适用于标准模式.它在共享或免费模式下会引发错误,因此请注意.
I have an azure website setup in West-Europe and in Standard mode. Suddenly today at 30 January 2014 03:00 am UTC it started constantly restart the app pool. The ShutdownReason is HostingEnvironment. I have a lot of these events in eventlog.xml:
<Event>
<System>
<Provider Name="W3SVC-WP"/>
<EventID>2299</EventID>
<Level>3</Level>
<Task>0</Task>
<Keywords>Keywords</Keywords>
<TimeCreated SystemTime="9:14:50 AM"/>
<EventRecordID>15807234</EventRecordID>
<Channel>Application</Channel>
<Computer>RD00155D3A08C6</Computer>
<Security/>
</System>
<EventData>
<Data>Worker Process requested recycle due to 'Slow Requests' limit.
</Data>
</EventData>
</Event>
I can't find any info about the 'Slow Requests' limit.
These restarts aren't related to the code, nothing was changed for a week.
Only switching the web site mode to Shared helped me.
It's the second time it happened and I don't understand the reason of such behavior.
I got a reply from Windows Azure Web Sites Team on MSDN forum:
We have identified this issue as a bug in new Auto-Heal feature we shipped recently. Please add following in your web.config file to mitigate this issue for now.
<configuration>
<system.webServer>
<monitoring>
<triggers>
<slowRequests timeTaken="02:00:00" count="1000000000" timeInterval="00:01:00" />
</triggers>
<actions value="LogEvent" />
</monitoring>
</system.webServer>
</configuration>
We are working on releasing the fix ASAP.
Apologies for inconvenience.
Windows Azure Web Sites Team
Update: The workaround works only in Standard mode. It throws an error in Shared or Free mode, so be aware.
这篇关于由于“慢请求"限制,Azure 网站不断重启的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!