Sunday, August 20, 2017

Disadvantage of Session or Requests stuck in IIS due to RequestAcquireState

Some of the clients were complaining about website speed so Last month I was monitoring web server and found out that there is a request queue and server is not efficiently handling the entire request rather stuck on the event called RequestAcquireState due to which a queue is built on server. After searching I’ve come to the conclusion that it was happening due to session used in the website and there are pages where we are using sessions. So whenever user request the page where session is used it locks down other requests from entering into that page which causes slowness in web application and our clients were complaining about speed.



I’ve read about session in details and came to know about concurrency issue of sessions. If you send two requests at the same time, ASP won't even start on the second request until the first one is finished. This can cause unexpected and poor performance on applications that use a lot of AJAX or other logic that is supposed to be asynchronous.

So finally I’ve removed session from website pages and rather use query string and other techniques to send data from one page to another which solves my problem.

Hope this tutorial will be helpful for you.

No comments:

Post a Comment