none
WarmUp script for SharePoint 2010

    Question

  • Hi,

    I'm setting up a new SharePoint 2010 form and now I wanted some WarmUp script so that it hits each and every site in the farm. Can anybody provide me how to achieve that or any pointers so that I can download.

    Thank you very much!


    Thanks, Hitchs

    Monday, August 06, 2012 9:33 PM

Answers

  • My environment is much smaller, which is likely why i'm not seeing the hit in ULS logs.  I did take a closer look and saw the spwakeup3 logs in there.

    According to the codeplex site, you can omit specific webs by using the -exclude switch. An example from the site:

    spwakeup3.exe -Exclude:http://badsite.com -Exclude:http://badsite2.com

    Thursday, August 09, 2012 11:54 AM

All replies

  • Here's a PowerShell script that can be configured to run on SP WFE server as a task scheduler. Typically, the app pools are scheduled to recycle every night by default.  The script simulates the process of accessing the SP site through a web request API call.

    http://www.jonthenerd.com/2011/04/19/easy-sharepoint-2010-warmup-script-using-powershell/


    Monday, August 06, 2012 10:28 PM
  • Hi Guru,

    Thanks for the response!

    Can you please advise me how to run this script? I have no idea how to do that.

    And also one more question, does it hits all the Site collections and their sub sites in the farm?


    Thanks, Hitchs

    Tuesday, August 07, 2012 12:18 AM
  • Hi,

    http://nearbaseline.com.au/blog/2010/02/powershell-warmup-script-2/

    create file with Warmup2.ps1 extension, code code in that file. Open Powershell (run as adminsitrator) and goto directory where u save .ps1 file and execute it like .\Warmup2.ps1

    You can also schedule it using task scheduler after recycling all application pools.

    Thanks. 


    iffi

    Tuesday, August 07, 2012 8:05 AM
  • Older info, but still applies: http://www.loisandclark.eu/Pages/warmup.aspx

    Kind regards,
    Margriet Bruggeman

    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

    Tuesday, August 07, 2012 12:15 PM
  • http://spwakeup.codeplex.com/

    I use this as a scheduled task every morning at around 5AM.  Works great.  Just be sure it is happening after your IIS recycling. Also, if you have multiple WFEs, be sure to set this to run on each of them.


    • Edited by Andrew.JR Tuesday, August 07, 2012 2:57 PM
    • Proposed as answer by Jason WarrenMVP Wednesday, August 08, 2012 7:29 PM
    Tuesday, August 07, 2012 2:53 PM
  • Hi Imughal,

    Thanks for your help!

    Well, I like this script which is displaying all the site collections. I have few doubts which are

    1. Is it hitting only the site collections or all the sub sites under that Site collection as well?

    2. How can we exclude some Site collections which we don't want to hit?

    I really appreciate your help.

    Thanks


    Thanks, Hitchs

    Wednesday, August 08, 2012 7:10 PM
  • Hi Andrew,

    Thanks for your help.

    I tried this application earlier, but it is leaving huge amounts of log file like 400,000kb(Since it has Verbose enabled, I saw it in the code of this application) or around that number depending on no of Web-apps. We can't afford that much space on the server, which will be growing daily.

    Is there any other idea to get rid of that or you guys just leave the way it is?

    I really appreciate your help.

    Thanks.


    Thanks, Hitchs

    Wednesday, August 08, 2012 7:14 PM
  • Hitchs,

    I thought that verbose was false by default unless you used the -verbose trigger.  This seems to be the case when I look at the source code.  What logs are you referring to it creating?  ULS Logs?  I'm not seeing that problem.  My environment has ~15 web applications.

    Wednesday, August 08, 2012 8:06 PM
  • Yes, ULS logs. You might have to check your log files. Because if you see the source code, it is writing every site that it is hitting on to the log files.

    My environment is very big I've ~25 web apps and out of 25 I've 4 web apps with 600 site collections and almost 1500-1600 sub sites existing. So if I run this script, it is spitting almost 400,000kb log file. Which I don't think anybody recommends.

    Do you have anyother ideas? What if you don't want some site to hit? any work around for this?

    Thanks.


    Thanks, Hitchs

    Wednesday, August 08, 2012 8:53 PM
  • My environment is much smaller, which is likely why i'm not seeing the hit in ULS logs.  I did take a closer look and saw the spwakeup3 logs in there.

    According to the codeplex site, you can omit specific webs by using the -exclude switch. An example from the site:

    spwakeup3.exe -Exclude:http://badsite.com -Exclude:http://badsite2.com

    Thursday, August 09, 2012 11:54 AM