debugging - IIS Orphaned Requests -
we have iis 7 running classic asp app , i've been noticing following issue lately. on course of day, if @ server node --> worker processes requests seem fill there. elapsed time crazy 12 hours @ end of day. requests sit in executerequesthandler stage.
there no way executing long, , cannot seem reproduce issue. have tried dumping w3wp.exe, using frt, , stuff, have general questions:
- is there setting controls when iis stops request? specific, in development, if purposely design page slow (i.e. update sql table thats locked) , close out of browser, , monitor requests in iis, see request still sits there 20 seconds before being removed. 20 seconds random interval, or can set somewhere? clear, it's not page takes 20 seconds execute, execute forever (in test case) seems iis gives on after 20 or seconds after log out.
- is there way see "orphaned" requests, i.e. requests in app pool nobody waiting anymore
- what else can try , debug this? dump of w3wp says there client connections http request state of htr_reading_client_request.
- i keep getting suggestions of modifying iis config settings such asprequestqueuemax, every time try looking in applicationhost.config don't see items set, either i'm looking @ wrong place, or default value not explicitly set in config. begs 2 questions: a) how read these config values, i.e. current value, b) how set these.
a classic asp request keep running until script timeout reached, regardless of whether client connected or not. believe default 90 seconds, .asp file can override setting server.scripttimeout property directly (which pretty common). if request queue filling reason , changing defaults not help.
if can edit asp code, can add logic in potentially long running sections:
if not response.isclientconnected call response.end() you can global search code server.scripttimeout understand abuse coming.
if want change default script timeout, here stored: https://www.iis.net/configreference/system.webserver/asp/limits
to change via iis7 gui go to: (web site) > (features view) > ("iis" category) > "asp" > expand "limits properties" node > "script time-out"
Comments
Post a Comment