sst4460
sst4460

Reputation: 353

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

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.

Upvotes: 12

Views: 15001

Answers (2)

maddoxej
maddoxej

Reputation: 1662

I believe that if you have

compilation debug="true"

in your web.config the timeout does not apply.

Upvotes: 8

Matthew James Davis
Matthew James Davis

Reputation: 12295

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

Upvotes: 0

Related Questions