asp.net - In IIS7, what happens between Application_BeginRequest and Application_PreRequestHandlerExecute? -


i've got tracing statements timestamps on asp.net iis application gets lot of traffic. i've got trace statements @ end of application_beginrequest , beginning of application_prerequesthandlerexecute in global.asax. there big delay between end of beginrequest , start of prerequesthandlerexecute, i.e. more 5 seconds.

what going on in lifecycle of httprequest between these 2 method calls taking long? iis7 on windows server 2008.

thanks.

if beginrequest has happend , delay before prerequesthandlerexecute, might want log thread id. if different, suffer asp.net thread agility.

a reason happen can use of sessions. asp.net uses reader-writer lock on httpcontext.current.session. if write variable, other request same session cannot run concurrently , parked in queue. .net uses polling mechanism check whether session lock released.

i recommend checken you've build on release , system.web/compilation/@debug = 'false'


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -