How to prevent long running requests in an IIS worker process?
Asked Answered
C

2

12

enter image description here

In the screenshot above, you can see there were two requests open for a worker process for over 7 hours.

Is there a setting somewhere in IIS that can automatically kill requests over a certain duration? Clearly there is a bug on a page somewhere but as a stopgap we'd like to stop these requests from lasting this long.

Confucianism answered 7/11, 2014 at 19:45 Comment(0)
M
8

I believe that if you have

compilation debug="true"

in your web.config the timeout does not apply.

Mingo answered 9/11, 2014 at 21:36 Comment(2)
MSDN agrees. (Scroll down a few rows or grep for executionTimeout.)Coeducation
you just saved me! my whole app was stuck for 2 days. i checked every possible setting. till i came across your post. removing debug=true did the trick!!Weksler
P
0

You can set a connection timeout limit in IIS configuration. You can do this by opening up IIS, navigating to configuration in the features view (at the correct scope, probably the website level), and setting the connection timeout property on the limits key. See the following article for more detailed instructions:

http://www.iis.net/configreference/system.applicationhost/sites/sitedefaults/limits

Phrasing answered 7/11, 2014 at 19:51 Comment(1)
That's what I thought too but ours is set to 120 seconds in this case. It seems the Connection Time-out property only applies to inactive connections. There must have been something going on with this connection. see screenshotConfucianism

© 2022 - 2024 — McMap. All rights reserved.