Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why would an ASP.NET site become veeeeeery slow after the network connection dropped?

I have an ASP.NET 3.5 site published in IIS 7.5 on Windows Server 2008 R2 64 bit. The pages are accessed over SSL

One of our testers has determined that if, during a postback, he blocks network access on his PC, and then after a few seconds reconnects, our site becomes excruciatingly slow. Like 30 seconds per page load.

If he hits the refresh button in his browser it stays slow. If he closes the tab, then re-opens it, it becomes fast again.

This behavior happens with both IE 8 and the latest firefox. There are no event log entries on the server when this happens

My question: - Has anyone seen this same behavior? - Does anyone have a theory as to what causes it?

like image 424
Joon Avatar asked Jun 12 '10 09:06

Joon


People also ask

Why is my ASP.NET site so slow?

There can be numerous reasons why . NET applications can be slow. These include incorrect memory sizing, GC pauses, code-level errors, excessive logging of exceptions, high usage of synchronized blocks, IIS server bottlenecks, and so on.

How would you diagnose the poor performance from a .NET application?

The best way to monitor the performance of your ASP.NET application is with an application performance management (APM) solution. Retrace tracks the performance of your application down to the code level and provides detailed reporting of ASP.NET application performance.

Why is IIS so slow?

An IIS or ASP.NET hang can cause your website to have slow page loads, timeouts, or 503 Service Unavailable errors. Hangs can be caused by blocked ASP.NET threads, bad configuration, or request queueing.


1 Answers

Just a shot in the dark, but it might be related to HTTP keepalive. Try disabling that on the server and see if the problem persists.

like image 103
Adrian Grigore Avatar answered Sep 23 '22 09:09

Adrian Grigore