Keep Alive settings in Sharepoint
-
Friday, April 13, 2012 3:02 PM
Hi
In my project there are multiple sites (around 30 sites) on Sharepoint.After running performance test on various sites, I saw that every morning after a long inactivity period, the sites took more than 14 seconds to load the home page. I read some articles about the keep Alive settings.However didn't get much idea about it.
Questions: Do we have Keep Alive option/settings in Sharepoint 2010? if not, what should be done to keep the sites warm ?
Is there any tool available which can be integrated with Sharepoint to have KeepAlive settings in Sharepoint 2010 ?
All Replies
-
Friday, April 13, 2012 3:07 PM
I suspect what you are seeing is the initial loading required after the application pools recycle. Each night, early in the morning IIS will automatically stop and restart all application pools (at a unique time for each). This unloads everything from memory; the delay you see is when users first hit pages in SharePoint and the application pool loads them back into memory.
The solution to this is to implement warm up scripts. A warm up script runs after the recycle happens (usually set up with a scheduled task) and loads commonly accessed pages in the site, such as a home page. This way, when people arrive in the morning and fire up SharePoint there is no loading delay as the content has already been loaded.
If you search for SharePoint Warm Up script, you'll find many examples. There is also a tool on codeplex which will do this for you, SPWakeUp.
Jason Warren
Infrastructure Specialist
Habañero Consulting Group
www.habaneros.com/blog- Marked As Answer by SDET-G Friday, April 13, 2012 3:52 PM
-
Sunday, April 15, 2012 5:25 AM
Hi Jason
Thank you for your reply. That was helpful.
I have a question, Can I use the Warm up script in Production sites too? Also, the site has login/password page too, should the warm script include login credentials? is there any security threat by running the warm-up script against Prod Env.
-
Sunday, April 15, 2012 3:55 PM
You shouldn't have any problem. I would setup the script to run from a server. This article has some great resources. I like Andrew Connell's solution, since it incorporates the function into SharePoint as a solution.
https://www.nothingbutsharepoint.com/sites/itpro/Pages/Roundup-SharePoint-Warm-Up-Scripts.aspx
-victor
Be a part of the community, please remember to indicate if your question/comment has been answered or is helpful.

