Microsoft KB Archive/313064

= How to monitor Web server performance by using counter logs in System Monitor in IIS =

Article ID: 313064

Article Last Modified on 2/5/2007

-

APPLIES TO


 * Microsoft Internet Information Services 5.0

-



This article was previously published under Q313064



IN THIS TASK
SUMMARY
 * How to Create a Counter Log
 * How to Configure a Counter Log
 * How to Choose Counters

REFERENCES



SUMMARY
This step-by-step article describes how to create and configure counter logs in System Monitor so that you can monitor Web server performance.

In System Monitor, you can create logs to automatically collect server activity data at specified intervals. You can then use this data to help you identify the cause of delays, and to tune your server for optimal performance.

System Monitor uses counters to track the activity of specific objects (services or mechanisms that control server resources). In addition to the objects and counters that are included with Microsoft Windows 2000 Server, Internet Information Services (IIS) 5.0 installs counters that monitor Web server performance. These counters include global IIS counters, Web service counters, File Transfer Protocol (FTP) service counters, and Active Server Pages (ASP) program counters. Global IIS counters monitor the activity of all IIS services, such as bandwidth usage and caching. Web service, FTP service, and ASP program counters monitor connection activity.

back to the top

How to Create a Counter Log
To create a counter log:
 * 1) Click Start, point to Programs, point to Administrative Tools, and then click Performance.
 * 2) Double-click Performance Logs and Alerts in the console tree, and then click Counter Logs.
 * 3) Right-click an empty area in the right details pane.
 * 4) Type a name for the log in the New Log Settings dialog box, and then click OK.
 * 5) Click the General tab, and then click Add.
 * 6) Click the object that you want to monitor (for example, click Web Service) in the Performance object box, click either All counters or Select counters from list, and then click the counter or counters that you want to log.

NOTE: To view a description of a counter, click the counter, and then click Explain.
 * 1) To monitor all instances of the selected counter, click All instances. To monitor specific instances of the selected counters, click Select instances from list, and then click the instances that you want to monitor.
 * 2) Click Add.
 * 3) Repeat step 6 through step 8 to add the counters that you want to log. When you are finished, click Close.
 * 4) Specify the value that you want in the Interval box, and then click the unit of time that you want in the Unit box.
 * 5) Click OK.

back to the top

How to Configure a Counter Log
To configure a counter log:  Click Start, point to Programs, point to Administrative Tools, and then click Performance. Double-click Performance Logs and Alerts in the console tree, and then click Counter Logs. Double-click the log that you want to configure in the right details pane. Click the Log Files tab, and then specify the options that you want by performing any of the following steps:  Accept the default location or specify the location that you want for the log file in the Log file name box, and then specify the log file name options that you want. Specify the format that you want for the log file in the Log file type box. For example, Binary File. Specify whether you want to limit the size of the log file in the Log file size box.</li></ul> </li> Click the Schedule tab, and then use the following steps: <ol style="list-style-type: lower-alpha;"> To configure logging in the Start log box: <ul> To configure the logging to start manually, click Manually (using the shortcut menu).

-or-</li> To configure the logging to start at a specified time and date, click At, and then specify the time and date that you want the logging to start.</li></ul> </li> Use the following steps to configure the information in the Stop log box: <ul> Click Manually (using the shortcut menu) to manually stop the logging.

-or-</li> Click After, and then specify a period of time after which the logging automatically stops.

-or-</li> Click At, and then specify the time and date that you want the logging to stop.

-or-</li> Click When the  log file is full, where   is the log file size limit that you set on the Log Files tab. This option is available only if you specify a log file size limit in the Limit of box on the Log Files tab.</li></ul> </li> Specify the option that you want (if any) in the When a log file closes box.</li></ol> </li> Click OK.</li></ol>

back to the top

How to Choose Counters
There are hundreds of counters from which you can choose to monitor server activity. The following list describes the counters that are useful for monitoring the load on your Web server, and provides ideal values for each.

back to the top

<div class="references_section">