Note that there are some explanatory texts on larger screens.

plurals
  1. POStrange lag in http pipeline with ASP.NET MVC on IIS6
    primarykey
    data
    text
    <p>I have an ASP.NET MVC application running on IIS6 with enabled wildcard mapping. After performing some load tests I digged into log files with focus on the slow requests. I have a log file from the load testing application, IIS log file and the log file from the <a href="http://msdn.microsoft.com/en-us/library/system.web.ihttpmodule.aspx" rel="nofollow noreferrer"><code>IHttpModule</code></a> I develop for this purpose which records time of <a href="http://msdn.microsoft.com/en-us/library/system.web.httpapplication.beginrequest.aspx" rel="nofollow noreferrer"><code>Application.BeginRequest</code></a> and <a href="http://msdn.microsoft.com/en-us/library/system.web.httpapplication.endrequest.aspx" rel="nofollow noreferrer"><code>Application.EndRequest</code></a>.</p> <p>When I compared data for slow requests in the IIS log file and the log file of my module I've discovered some odd behavior.</p> <pre><code>var request_processing_start = iis_log_file.time - iis_log_file.taken var aspnet_processing_start = my_module_log_file.begin_request_called var aspnet_processing_end = my_module_log_file.end_request_called var request_processing_end = iis_log_file.time </code></pre> <p>For all requests values of <code>aspnet_processing_end</code> and <code>request_processing_end</code> match pretty close (difference no more then few milliseconds). However some requests have timespan between <code>request_processing_start</code> and <code>aspnet_processing_start</code> up to 30 seconds. <strong>What is the cause of this lag and a how can I prevent it?</strong></p> <hr> <p>Some more details of load test I've done:</p> <ul> <li><strong>Number of requests:</strong> on long time average 2 per seconds, in the peaks no more then 20 per second. (This is really low, we cannot blame wildcard mapping)</li> <li><strong>Processor usage:</strong> flat line bellow 5% (We cannot blame lack of cpu power)</li> <li><strong>Free memory:</strong> more than 1GB (Memory isn't also issue).</li> <li>The lag I described is occurring only when the server is under load. When the load testing application isn't running it cannot be reproduced.</li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload