Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS Hangs on ExecuteRequestHandler

Tags:

iis

iis-7

azure

I've encountered a problem with IIS.

The problem is the following:

  • Sometimes (intermittent issue) IIS hangs a request in a state called ExecuteRequestHandler, and it spends ~85% of the time.

I couldn't figure out why. Tried everything what I've found in forums, nothing helped. I'm using azure for my backend server and another azure server I have my database.

enter image description here

Can somebody explain what exactly this ExecuteRequestHandler step in a request lifecycle?

I didn't find a good explanation about what this step is doing. Is it executing my code already or is it a pre-task in the lifecycle? The reason I'm asking it to be able to detect where the problem is.

like image 954
Iamisti Avatar asked Mar 28 '26 23:03

Iamisti


1 Answers

That's when the application code executes.

When it receives a request, IIS creates an IRequest object to represent it, and also creates an IHttpHandler to handle it, the exact class depending on the technology (DefaultHttpHandler, MvcHandler, ...).

There are many steps to completely handle a request, the core one being the HttpApplication.CallHandlerExecutionStep.Execute method calling ProcessRequest on the IHttpHandler.

like image 109
Philippe Avatar answered Mar 31 '26 11:03

Philippe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!