Skip to main content

SharePoint Reporter Blog

Go Search
SharePoint Reporter Blog Home
About Me
Contact Me
  

SharePoint Reporter Blog > Posts > How to Create a MOSS 2007 VPC Image: Part 18
How to Create a MOSS 2007 VPC Image: Part 18

Welcome to part 18 in a series of posts which describe how to create a Microsoft Office SharePoint Server 2007 (MOSS 2007) Virtual PC image for demos and development work. Last time, we looked at how to install some of the Office 2007 applications into our virtual machine. This time, we’ll look at how to install a set of “warm-up” scripts which will help improve the initial performance of the MOSS 2007 virtual machine after boot-ups.

 

Part 18: Installing Warm-up Scripts

 

Download the warm-up scripts:

Filename: warmup.zip

Download URL: http://www.pptspaces.com/sharepointreporterblog/Shared%20Files/warmup.zip

 

Copy the warmup.zip file onto the C: drive of the VPC image:

 

 

Extract the warmup.zip file to create the folder C:\warmup containing three files:

HttpRequest.vbs

startup.bat

WarmUpServer.cmd

 

 

Open the startup.bat file with a plain text editor such as Windows Notepad, and update these four lines:

 

call WarmUpServer SERVERNAME

call WarmUpServer SERVERNAME:2222

call WarmUpServer SERVERNAME:5555

call WarmUpServer SERVERNAME:1111/ssp/admin

 

In this example, the four lines should read:

 

call WarmUpServer vpc02

call WarmUpServer vpc02:2222

call WarmUpServer vpc02:5555

call WarmUpServer vpc02:1111/ssp/admin

 

 

Right-click on the startup.bat file, then select Send to > Desktop (create shortcut):

 

 

Return to the Windows desktop, right-click on the new Shortcut to startup.bat icon, and select Properties from the drop-down list:

 

 

Under the General tab of the Shortcut to startup.bat Properties dialog box, enter Warm-Up for the new name of the shortcut:

 

 

Under the Shortcut tab of the Shortcut to startup.bat Properties dialog box, click the Change Icon button:

 

 

When the Change Icon alert message is displayed, click the OK button:

 

 

In the Change Icon dialog box, select an appropriate icon for the new desktop shortcut, then click the OK button:

 

 

Click the OK button to close the Shortcut to startup.bat Properties dialog box:

 

 

To run the warm-up scripts after boot-up, simply double-click on the new Warm-Up desktop icon:

 

 

A command window will open for the execution of the warm-up scripts, and the scripts may take a few minutes to run, depending upon the performance of your virtual machine; when they are finished, the command window will close automatically:

 

 

You should now have a fully-functional set of warm-up scripts installed in your virtual machine, and a shortcut on your virtual machine’s desktop to launch the script after booting.

 

In Part 19, we’ll look at some other ways that we can optimize the size and performance of our MOSS 2007 VPC image.

Comments

Explanation

This is a great tutorial! However, I am hesitant to follow this step because I am unsure exactly what the warmup script is meant to do. Can you provide a more detailed explanation?
at 3/13/2007 5:23 PM

Purpose

It hits all of your sites to start the Just in Time (JIT) compiler for faster site access. You don't need it but every time you hit your site(s) for the first time there will be a significant delay. This script automates that process for convenience.

Great Tutorial BTW! Thanks for all your work.
at 4/11/2007 3:04 PM

Thank you!

Thank you for the great work done here, it helped me a great deal. Great work!
at 4/17/2007 6:10 AM

Question on STSADM command

The STSADM command line in the batch file does not appear to do anything...  all you get is an error message telling you the available command switches...

What is this line intended to do?
at 5/3/2007 9:17 AM

warmup command

First, this is a great tutorial - thanks so much.  Second, I ran the command as articulated here, but noticed that I got an initial error at the top of the cmd screen.  The script seemed to run correctly and closed the window when finished.  Is an error ok, it occurred before any of the other scripts began to run.  Just curious.
at 5/22/2007 10:02 AM

Thx!

Works like charm! Exactly what I needed! Indeed the error is:
"C:\Program Files\Common Files\Microsoft Sha680150003" is not recognized as an internal or external command.
at 8/23/2007 10:20 AM

Thx!

Error is: "Command line error."
at 8/23/2007 10:59 AM

This tutorial not work!!!!!

Firstly, you need set to 12\bin, and make stsadm.exe run at your directory.
at 11/6/2007 1:16 PM

Add Comment

Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Title


Body *


Attachments