由于"慢速请求"限制,Azure网站不断重启

Ale*_*tin 6 iis appdomain azure azure-web-sites

我在西欧和标准模式下设置了azure网站.突然今天在2014年1月30日03:00 UTC开始不断重启应用程序池.ShutdownReason是HostingEnvironment.我在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>
Run Code Online (Sandbox Code Playgroud)

我找不到有关"慢速请求"限制的任何信息.
这些重新启动与代码无关,一周内没有任何更改.只有将网站模式切换为共享才能帮助我.

这是它第二次发生,我不明白这种行为的原因.

Ale*_*tin 4

我在 MSDN 论坛上收到了 Windows Azure 网站团队的回复:

我们已将此问题确定为我们最近发布的新自动修复功能中的错误。请在您的 web.config 文件中添加以下内容以暂时缓解此问题。

<configuration>
    <system.webServer>
        <monitoring>
            <triggers>
                <slowRequests timeTaken="02:00:00" count="1000000000" timeInterval="00:01:00" />
            </triggers>
            <actions value="LogEvent" />
        </monitoring>
    </system.webServer>
</configuration>
Run Code Online (Sandbox Code Playgroud)

我们正在努力尽快发布修复程序。

对于给您带来的不便,我们深表歉意。

Windows Azure 网站团队

更新:该解决方法仅适用于标准模式。它会在共享或自由模式下引发错误,因此请注意。