So, I am by no means the first person to write about these "warm-up" scripts for Sharepoint 2007. But a good friend pointed out that there's still a lot of Sharepoint 2007 admins out there who may not have heard of them yet. So, here's yet another link in the chain.
To start with, just google the phrase "moss warm-up scripts" and you'll get most of what you need.
The highlights:
The actual files:
Joel Oleson's post:
http://blogs.msdn.com/joelo/archive/2006/08/13/697044.aspx
Here's a link to a long post on Sharepoint Reporter Blog about how to create a good Sharepoint 2007 VPC image, which includes screenshots, etc on the warm-up scripts:
http://www.pptspaces.com/sharepointreporterblog/Lists/Posts/Post.aspx?ID=24
Basically, open and extract the warmupserver.zip file's files. I usually extract them to the same directory as stsadm: C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN . Tthen right-click and edit warmupserver.cmd file. Copy the whole call :HitPage moss:42512 /default.aspx line again and then replace moss:42512 with yourservername:portnumber for Central Admin, moss:42512 with yourservername:80 (or whatever your main portal is) and the moss:36342 from the /ssp/admin with servername and port number. Or you can put the full address of each site collection, like http://sharepoint or http://machinename:7440 , etc.
Go take a look at your web application pools in IIS to see when they recycle nightly and then schedule the startup.bat to run as a task just after that. You may even want to change when the web apps cycle and put them all within a window of about 15 minutes, then run the task right after that.
Enjoy
Thanks Ray, Ian