I wanted to know and implement warm up scripts in Sharepoint 2010. Can anyone tell me what are these warm up scripts and why do we need it?
Please provide the script and how to execute the same.
Like any .Net application, SharePoint requires a certain time to load the page initially and subsequent requests come faster from the server for the same site.
These are common issues faced by developers when they try accessing the site the first time of the day. In order to bypass this, we usually run a Start Up script or so called Warm up script at a scheduled time at the beginning of the day. This refreshes the App pool and in turn the subsequent IIS requests come faster like normal.
The best Wake up script I have found is from codeplex called SPWakeUp script which comes handy with certain parameters like -Exclude(to exclude certain sites), -UserName, -Password required for accessing the sites, etc.
The warmup scripts are meant to keep the SharePoint sites & its contents more responsive and some also for maintenance (recycling App pools & IIS). Here's an example - Warming up SharePoint 2010 using PowerShell
There's another post here that explains more - SharePoint Site Collection Keep Alive Job