Session Ends Automatically

168 Views Asked by At

About Application: I build an application in .NET which I have installed on 5 sub domains. for example client1.mydomain.com, client2.mydomain.com . Initially I uploaded this application on a shared server.

Issues: I found, sometime user session end without any reason. I try to figure it out. Support team told me that I can use maximum of 150 MB in pool. This application is using almost 70-80 MB, so I though with 5 sub domains its actually using 70*5 = 350 MB, and that's why poll is getting reset/recycling & session ends automatically. I shifted my app on VPS. Configuration is 2GB ram, 40GB space, Windows 2008 r2, IIS 7.5. But issues is still same.

I found lots of suggestion, but they looks to me very experimental

My Thoughts and Query: I guess I need to set Maximum pool size. if I am correct, I can set pool size through "Memory Based Maximums", but question is, if its uncheck what is the maximum pool size by default. and to Maximized pool size what value I can set ?

Can anyone suggest me what to check and how can I resolve this issues ?

Thanks

1

There are 1 best solutions below

3
On

Please refer this article.

http://technet.microsoft.com/en-us/library/cc745955.aspx

There is an idleTimeout for Application Pools to Recycle.

By default it will be 5 min and you can change to any higher values [20 min preferred max].

iis manager -> Application Pools -> Select your app pool -> Advance Settings - IdleTimeout