sharepoinTony

@info – The practical side of SharePoint

Archive for October, 2010

Warm-up SharePoint 2010 sites

Posted by sharepoinTony on October 20, 2010

Technorati Tags: ,,

Background

Customers may ask for a “warm-up script” to enable their SharePoint sites to load faster after a restart, etc.  With versions of SharePoint prior to 2010, such as 2003 and 2007 there were several variations of scripts developed to accomplish this, each with their own negative impact.  Generally, Microsoft recommended against using these scripts in a production environment.  For SharePoint 2010 there is a new and better solution which is an extension to IIS.  You must evaluate your environment to determine if this solutions is appropriate or not.

Solution

Use the Application Warm-Up Module for IIS 7.5.

IIS Application Warm-Up for IIS 7.5 can be configured to initialize Web applications by using specific Web pages and user identities. This makes it possible to create specific initialization processes that can be executed synchronously or asynchronously depending on the initialization logic. In addition, these procedures can use specific identities in order to ensure a proper initialization.

Steps To Implement

  1. Download the 64-bit version for Windows Server 2008 R2 from the iis.net site (Application Warm-Up Module for IIS 7.5)
  2. Install the module on the machine hosting SharePoint 2010 web applications
  3. Configure the module by launching IIS Manager
  4. Click on your SharePoint site, double-click on the Application Warm-Up item
  5. Select Settings from the Actions section on the far right pane
  6. Select both options in the Settings dialog and click the OK button
  7. Click Add Request….
  8. Enter the URL of your SharePoint site (typically the main page) – the status codes will auto-populate
  9. Enter a name for this Request in the Request context parameter field, click OK
  10. Click Edit User Context… to specify authentication settings
  11. Select Set Username and Type only from the Mode selection box of the Edit User Context dialog
  12. Select Windows from the Type selection list (or another appropriate option for the environment)
  13. Enter the User name and click OK
  14. Repeat steps 7-13 for each site or site collection running on this IIS server which you want to ‘warm-up’

Notes

  • If you try to use Anonymous or do not set the User Context the module will not work & will generate errors in the event log.  There are situations where Anonymous would work, such as an external SharePoint site with Anonymous access enabled then you could use Anonymous in the User Context settings.
  • This module will warm-up the site after an IIS Reset, Server Reboot, or Application Pool recycle.

Reference:

http://www.iis.net/download/ApplicationWarmUp

Using the IIS Application Warm-Up Module http://learn.iis.net/page.aspx/688/using-the-iis-application-warm-up-module/

http://sharepointgeorge.com/2010/warm-sharepoint-web-applications-windows-2008-r2-iis-75-application-warmup-module/

Advertisements

Posted in Install and Configure, SharePoint 2010, Tips and Tricks | Leave a Comment »