From time to time we are running into an issue where we have many requests with the following state in IIS: RequestAcquireState
.
We are using SqlSessionStateStore
to manage sessions. When we have many requests in this state they eventually time out and go away. Sometimes they are there for over an hour.
What I do see when we have these hung sessions is an increase in the executions of the stored procedure TempGetStateItemExclusive3
in the ASPState database. Up to 2,000 every few seconds. Not good.
I was hoping someone could help me with the following questions:
How do these sessions hang
Do they cause any harm other than the increased db activity
Is it possible to kill the individual requests safely
Many people suggest a restart of the AppPool this is not good for people currently using the system
Is there a way of identifying these sessions in the ASPState database and what happens if you delete them