简体   繁体   中英

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

在此输入图像描述

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.

I believe that if you have

compilation debug="true"

in your web.config the timeout does not apply.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM