Set SharePoint Application Pool Recycle Time

By design, application pools in IIS are restarted every 29 hours to provide the best performance and stability. The first user accesses SharePoint after app pool recycling will experience considerable delay, as .net assemblies need to be recompiled to the memory. So, we use Warm-up scripts for SharePoint 2013 to mitigate this issue.

Configure Application Pool Recycle time Settings

Let’s customize SharePoint 2010/SharePoint 2013 application pool recycling settings So that our Warm-up script runs just after the specific time.

  • Go to IIS Manager >> Application Pools >> Pick your App Pool 
  • Right Click and choose “Recycling…”
Set SharePoint Application Pool Recycle Time

You’ll find the recycling conditions. Time attributes under the “Recycling ” group. You can adjust this setting to incorporate it with your Warm-up script schedule. Make your warm-up script run after the App Pool recycle time. Enter the specific time, Click Next, and then Finish.

You can also set the recycle time in the Application pool’s advanced settings.

sharepoint application pool recycle time

Don’t disable Application Pool recycling by removing the TimeSpan values, and You’ll run into memory leaks which could lead to web server out of memory issues!

Configure Application Pool Recycling time with PowerShell:

Import-Module WebAdministration

$AppPoolName = "SP13_Intranet_AppPool"

Set-ItemProperty -Path "IIS:\AppPools\$AppPoolName" -Name Recycling.periodicRestart.schedule -Value @{value="03:00"}
Consider Recycling application pools at different times in different Web servers to provide maximum availability!

Salaudeen Rajack

Salaudeen Rajack - Information Technology Expert with Two-decades of hands-on experience, specializing in SharePoint, PowerShell, Microsoft 365, and related products. He has held various positions including SharePoint Architect, Administrator, Developer and consultant, has helped many organizations to implement and optimize SharePoint solutions. Known for his deep technical expertise, He's passionate about sharing the knowledge and insights to help others, through the real-world articles!

Leave a Reply

Your email address will not be published. Required fields are marked *