How to Recycle IIS Application Pool in Windows

Channel: Linux
Abstract: select Application Pools under the systems hostname Select the application from the list In Actions pane (right sidebar)select Application Pools under

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
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
Schedule Auto Recycle Application Pool in IISConfigure auto recycle of application pools condition and intervalWrap Up

Ref From: tecadmin

Related articles