An application pool in IIS defines the common settings for the worker processes. That serves requests to one or more web applications assigned to that application pool. Application pool recycling is used to terminate the current worker process and start a new worker process. This process refreshes the worker process. That helps recover applications from unstable states, which can cause application crashes.

In this tutorial, you will learn:

  • How to Recycle the application pool in IIS?
  • How to Schedule auto recycle application pool in IIS?

1. How to Recyle Application Pool in IIS

Follow the below steps to recycle the application pool in the IIS server:

  1. Login to the Windows system and launch IIS application
  2. In the Connections pane (left sidebar), select Application Pools under the systems hostname
  3. Select the application from the list
  4. In Actions pane (right sidebar), click Recycle link button
How to Recycle IIS Application Pool in Windows General Articles
Manually Recycle Application Pool in IIS

You can also use Windows PowerShell to recycle the application pool attached to a specific website. The following Powershell command will recycle the application pool for the website named “demo.tecadmin.net”.

Restart-WebAppPool (Get-Website -Name demo.tecadmin.net).applicationPool

2. How to Schedule the Application Pool Recycling

You can also schedule the auto recycling of the application pool at regular intervals.

  1. Login to the Windows system and launch IIS application
  2. In the Connections pane (left sidebar), select Application Pools under the systems hostname
  3. Select the application from the list
  4. In Actions pane (right sidebar), click Recycling… link button
  5. Set the recycling condition and frequency
  6. Click Next and on next window Click Finish
How to Recycle IIS Application Pool in Windows General Articles
Schedule Auto Recycle Application Pool in IIS
How to Recycle IIS Application Pool in Windows General Articles
Configure auto recycle of application pools condition and interval

Wrap Up