Microsoft KB Archive/323315

= HOW TO: Create an IIS Baseline by Using the Processor Object =

Article ID: 323315

Article Last Modified on 12/3/2007

-

APPLIES TO


 * Microsoft Internet Information Server 4.0
 * Microsoft Internet Information Services 5.0
 * Microsoft Internet Information Services 6.0

-



This article was previously published under Q323315



We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:

http://www.microsoft.com/technet/security/prodtech/IIS.mspx



IN THIS TASK

 * SUMMARY
 * IIS 4.0
 * Set Up the Performance Monitor Logs
 * Schedule the Log to Run at Certain Times
 * IIS 5.0 and IIS 6.0
 * Set Up the Performance Monitor Logs and Schedule the Logs to Run at Certain Times
 * REFERENCES



SUMMARY
This article provides step-by-step instructions for creating performance logs that can help you to analyze the performance of your server running Internet Information Server (IIS) 4.0 and Internet Information Services (IIS) 5.0 and later. These logs may be used for troubleshooting or for obtaining a performance baseline for future notification of possible issues with your IIS server.

NOTE: Performance is best analyzed over several set time intervals. The longer the logging period, the better analysis is as to the typical baseline as opposed to the heavy baseline that your IIS server experiences.

back to the top

Set up the Performance Monitor Logs
You must create two sets of logs: one for high traffic, and one for low traffic.
 * 1) Create two folders, one to host your high traffic Performance Monitor logs (for example, C:\Perfmon\High) and one for the low traffic logs (for example, C:\Perfmon\Low).
 * 2) Open Administrative Tools. To do this, click Start, point to Programs, click Administrative Tools, and then click Performance Monitor.
 * 3) In Performance Monitor, click View, and then click Log.
 * 4) Add the correct counter. On the Edit menu, click Add to Log, click to select Process, and then click Add.
 * 5) Click Done.
 * 6) To save the log file, click Options, click Log, and then name the file Perfmon.log. Note that you must remember the path to the file so that you can schedule the log to run at certain times. For example, the path may be C:\Perfmon\High\Perfmon.log.
 * 7) On the File menu, click Save Log Settings, and then name the file Perfmon.pml. Note that you must remember the path to the file so that you can schedule the log to run at certain times. For example, the path may be C:\Perfmon\High\Perfmon.pml.
 * 8) Follow these steps again to set up another log and log settings.

back to the top

Schedule the Log to Run at Certain Times
The following steps are provided as-is and are to be used only to provide scheduling functionality that currently does not exist on the Microsoft Windows NT 4.0 operating system. Instead of following these steps, you can use any third-party product that is designed to schedule performance monitoring.

The following file is available for download from the Microsoft Download Center:

Download Schedperf.exe now

Release Date: July 3, 2002

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file. NOTE: To use the following Microsoft Visual Basic script, you must update your Windows Management Instrumentation (WMI) provider for Windows NT 4.0.  Download Schedperf.exe. Unzip Schedperf.zip in its own folder (for example, C:\Perfmon). Double-click Wmicore.exe to install it. After the installation is complete, open a command prompt, switch to the folder that contains the extracted files, and then start the script by using the following command:

WSCRIPT SCHEDPERF.VBS

 Read the warning, and then click OK. Type the path to the folder where you extracted Schedperf.vbs (for example, C:\Perfmon). Make sure that you do not type a backslash (\) at the end of the path.</li> Type the time zone information. To do this, calculate the offset from the GMT time zone in minutes (for example, 420 for Pacific Standard Time during Daylight Saving Time).</li> Type the path to your high-traffic Performance Monitor logs.</li> Type the start and end time for your high-traffic Performance Monitor logs in hh:mmAM/PM format.</li> Type the path to your low-traffic Performance Monitor logs.</li> Type the start and end time for your low-traffic Performance Monitor logs in hh:mmAM/PM format.</li> Type AT at a command prompt to review the schedule entries. The JobID that is listed in the left side can be used to delete an entry. Note that these Performance Monitor logs recur daily from Monday to Sunday. You may delete them by typing AT  /delete at a command prompt.</li></ol>

The AT functionality is only one of many Windows NT 4.0 scheduling applications. You can use any scheduling program for this task.

IMPORTANT: The key to obtaining data at the correct points is to have an understanding of when your IIS server is receiving the most requests and the least requests. For more information about how to obtain this information, see the &quot;References&quot; section.

back to the top

Set Up the Performance Monitor Logs and Schedule the Logs to Run at Certain Times

 * 1) Open Administrative Tools. To do this, click Start, open Control Panel, and then double-click Administrative Tools.
 * 2) Click Performance.
 * 3) In the left pane, double-click Performance Logs and Alerts.
 * 4) Click to select Counter Logs.
 * 5) Right-click inside the right pane, and then click New Log Settings.
 * 6) In the New Log Settings dialog box, type a name for the log, such as &quot;ProcessorHigh&quot;.
 * 7) On the General tab of the ProcessorHigh log, click Add Objects in the Counters section.
 * 8) In the Performance Objects list, click Processor, and then click Add.
 * 9) At the log screen, click the Schedule tab to schedule the log times to run.
 * 10) Calculate the correct time frame, and then set the start time to one hour before this time. For example, if the peak time is from 11:00 A.M. to 1:00 P.M. PST every Friday, start the log at 10:00 A.M. PST and set it to end at 2:00 P.M. PST every Friday. If the lowest usage time is from 2:00 A.M. to 4:00 A.M. PST every Friday, schedule a new log (such as ProcessorLow) to run from 1:00 A.M. to 5:00 A.M. PST every Friday.
 * 11) Repeat these steps for the other log.

back to the top

<div class="references_section">