Recycling ASP.NET

Recycling ASP.NET

Manually Recycling ASP.NET

The following steps can be used to recycle the application pool for a web site

  • Launch Internet Information Server (IIS)
  • Right-click on your Sitecore website and select Manage Web Site > Advanced Settings
  • Note the Application Pool listed at the top of the dialog box - click OK to close
  • Click on Application Pools at the top of the hierarchy in the left pane of IIS
  • Select the application pool that is being used by your site
  • Click on Recycle in the Action Pane on the far right of IIS

Recycling ASP.NET Caveats

  • Sometimes clicking on the Recycle command in the Action Pane does not cause the site to completely refresh
  • If changes are made to redirects using the URLRewrite tool, you may need to stop and start the application pool
  • Once you stop the application pool, IIS may display an error when you attempt to restart that same pool
  • Continue to periodically attempt to start the application pool every 10 seconds until IIS is able to start it

Machine.config file

  • Plain XML text file that contains ASP.NET configuration settings for the entire Web server
  • Path %Systemroot%\Microsoft.NET\Framework64\v2.0.50727 (and v4.0.30319)\Config
  • Settings affect all ASP.NET applications running on the server
  • processModel Element contains ASP.NET process model settings for the IIS Web server

The processModel Element

  • To create a new worker process after a specified amount of time, set an hh:mm:ss value for the timeout attribute
  • To create a new worker process after a specified number of requests, set an integer value for the requestLimit attribute
  • To create a new worker process after a specified percentage of memory is consumed, set an integer value for the memoryLimit attribute
  • To create a new worker process when there are requests in the queue, but there have not been any responses, for a specified amount of time, set an hh:mm:ss value for the responseDeadlockInterval attribute
  • To create a new worker process when there are no responses to pings, set an hh:mm:ss value for the pingFrequency and pingTimeout attributes.  The system pings the ASP.NET process at the pingFrequency interval, and restarts it if there is no response within the pingTimeout time interval

Sources