Question

We are hosting several ASP.NET MVC sites on Azure (Wesites in standard mode) and recently we have run into an issue with high latency - the server takes very long time to respond even for static files.

The developer console in Chrome shows these data for a sample image file (100kB):

  • connecting 12ms
  • sending 3ms
  • waiting 1856ms
  • receiving 89ms

We have configured autoscaling, so the website can scale out if the server gets to busy, but it doesn't seem to help.

Any idea, where the problem could be?

Edit:

The site is hosted in the West Europe region.

It appears, that the problem isn't in our ASP.NET application. I have created a new website that contains only static files and response times are also bad.

Was it helpful?

Solution

Switching to instance size M has solved this for us ... for now.

OTHER TIPS

I copy-paste the answer from my question because I think we have the same problem

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top