Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
467 views
in Technique[技术] by (71.8m points)

c# - How can I debug SessionStateModule/REQUEST_AQUIRE_STATE taking > 100 seconds on half of my requests?

This started happening in the last few days; possibly since I installed Visual Studio 2012. It's currently only happening on my machine (my colleagues are all still on VS 2010), but I'm hoping to uninstall VS 2012 to see if that has an affect.

Around 50% of all my web requests hang in SessionStateModule/REQUEST_AQUIRE_STATE for around 100 seconds (then the page completes successfully).

ANTS Profiler reports all the time as "Awaiting synchronisation" and gives a stack trace in some IIS thread callback (none of our code; sadly I don't have the info to hand).

I enabled IIS Failed Request Tracing for all requests, and reloaded the same page of our app 10 times. Requests 3, 5, 7, 9 all took > 100 seconds, with the others taking < 5 seconds.

We're using In Process sessions, so nothing is going over the network or being serialised. As far as I can tell, none of our code has been run up until the point this happens.

How can I get more information on what's happening to debug the issue?

IIS Failed Request Trace screenshot

Possibly related:

Browser waits for ajax call to complete even after abort has been called (jQuery)

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

This is a bug in .NET 4.5; see "Issue 6" on this page:

http://support.microsoft.com/kb/2828841/en-us


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...