How can I determine why my ASP.NET application is being processed

I am running an ASP.NET application on an IIS7 server. It has been working fine for a long time, but over the last week or so, it dropped sessions of all users several times a day. I have included all application pool reuse log parameters as described in http://blogs.iis.net/ganekar/archive/2008/12/12/iis-7-0-application-pool-recycles-log-a-event -in-windows-event-log.aspx , but I received nothing in my event log.

There are no errors in the event log and no visible signs, except that all my users lose their sessions.

Are there other reasons why IIS will recycle my application pool? Is there any other type of logging that I can find out what's going on?

+5
source share
2 answers

When you experience this behavior, how recently did you deploy your files to the server?

There is an unpleasant numRecompilesBeforeAppRestart configuration option in the compilation tag:

<system.web>
    <compilation debug="true" numRecompilesBeforeAppRestart="15">

http://msdn.microsoft.com/en-us/library/system.web.configuration.compilationsection.numrecompilesbeforeapprestart.aspx

15. , , . , - ( , ), AppDomain, Session , .

, , : http://support.microsoft.com/kb/319947

:

, .aspx .ascx (, 61 ). 15 , 15 , 61. , .

99999, . , , (3 , ) IIS AppPool.

+6

, .

IIS 6.0 . http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/87892589-4eda-4003-b4ac-3879eac4bf48.mspx

, - , -:

cd %systemroot%\inetpub\adminscripts
cscript.exe adsutil.vbs set w3svc/AppPools/YOUR_APP_POOL_NAME/AppPoolRecyclePrivateMemory true

[] IIS 7.0: http://technet.microsoft.com/en-us/library/cc771318%28v=ws.10%29.aspx

0

All Articles