Andrew Connell

Introducing the SharePoint Site Collection Keep Alive Job

For those of you who are familiar with my SharePoint Warmup Job utility from SharePoint 2007, this is the new version rewritten for SharePoint 2010 that fixes some bugs & adds a few new features.

Those of us who present, demo or teach SharePoint 2010 have something in common. SharePoint is like any other ASP.NET application in that the first time you hit a page it has to JIT compile the page. Once that’s done, subsequent page hits are nice and quick as the JIT compiled page is cached. That is until the IIS application pool is recycled, something those of us SharePoint developers do a lot. The other challenge is that when we present, demo or teach, we might not be in one site for a while, but we want it to “stay alive” like people are using it.

I’ve created a utility that at scheduled intervals will issue an HTTP/HTTPS request to a specified site collection’s homepage, key galleries and key admin pages. This way while presenting, demoing or teaching, you can ensure that the most common pages in your sites are being warmed up and kept alive so when you go to do your demo it’s nice and quick.

Installation

The installation process is pretty painless: run the batch file that will run the PowerShell file that adds and deploys the solution package. This will deploy an auto-activating Feature that adds a new link to Central Administration’s Application Management page:

Scaled image

Usage

This page will allow you to select a Web application and then specify which site collections you want to keep warmed up and alive. You can optionally pick which popular pages you want the job to hit and the frequency they are hit.

Scaled image

There’s even a special case for Central Administration as different options are shown:

Scaled image

Two Important Notes:

  1. I’ve tested this in both the public SharePoint 2010 beta as well as the not so public Release Candidate. So far everything works as expected.
  2. My target audience includes developers and those who present, demo or teach SharePoint. I don’t think this is a “production” utility. Frankly, if you have trouble with your sites warming up, you have to ask yourself why you have no traffic. :)

Got any feedback on more features? Leave a comment on this post.

ยป Download AC’s SharePoint 2010 Site Collection Keep Alive Job Utility

Andrew Connell
Founder & Chief Course Artisan, Voitanos LLC. | Microsoft MVP
Written by Andrew Connell

Andrew Connell is a web developer with a focus on Microsoft Azure & Microsoft 365. He’s received Microsoft’s MVP award every year since 2005 and has helped thousands of developers through the various courses he’s authored & taught. Andrew’s the founder of Voitanos and is dedicated to delivering industry-leading on-demand video training to professional developers. He lives with his wife & two kids in Florida.