Forum Moderators: open
But people have been reporting they have been timedout and logged out randomly. It has happened to me as well.
I can't find documentation on a maximum numb er of open sessions that the OS can handle. Has anyone seen this? Is it in the IIS metadata perhaps?
Baffling me right now.
THANKS.
Having made that leap of faith, I agree with venti.
Look at your application pool.
Specifically, you will lose your sessions upon application pool recycling.
Therefore, what you want to do is avoid that recycling.
If your code can take it, turn off all app pool recycling.
If your code can't take it, then you will need to fix the code until it can.
In my mind, the introduction of the app pool recycling and app pools themselves was the wrong thing to do. In effect it is a crutch for unstable web apps that do not deallocate resources properly. That is an application problem and it ought not be the responsibility of IIS to mask it. Such apps should die horrible deaths at random times and force the developer to fix them. To me, the recycling mechanism was a pure rip from apache that would have been better left alone. IIS 5.0 can run well written, feature rich apps 24x7 with absolute reliability. Any problems are problems stemming from bad coding, not IIS itself.
You are doing the right things.
What is unknown is the state of GC in your runtime.
What you might try to do is incrementally increase the time between recycles.
That way you get a feel for the behaviour. You also get to correlate losses of session state with the timing of the recycles. You could use the "recycle at" schedule so that you know exactly when the recycle operations should have happened.