Microsoft KB Archive/324795

= HOW TO: Be Reminded When Your Computer Resources Are Running Low in Windows Server 2003 =

Article ID: 324795

Article Last Modified on 12/3/2007

-

APPLIES TO


 * Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003, Web Edition
 * Microsoft Windows Server 2003, 64-Bit Datacenter Edition
 * Microsoft Windows Server 2003, Enterprise x64 Edition
 * Microsoft Windows Small Business Server 2003 Standard Edition
 * Microsoft Windows Small Business Server 2003 Premium Edition

-



This article was previously published under Q324795





IN THIS TASK
SUMMARY
 * How to Add Counters to System Monitor
 * How to Define Counters and Thresholds for an Alert
 * How to Choose What Data to Monitor

REFERENCES



SUMMARY
This step-by-step article describes how to configure your Windows Server 2003-based server to inform you when your computer resources are running low. Programs in Windows Server 2003 define the performance data it collects in terms of objects, counters, and instances. A performance object is any resource, program, or service that can be measured. You can use System Monitor and performance logs and alerts to select performance objects, counters, and instances to collect and display data about the performance of system components or installed software.

You can set an alert on a counter so that a message is sent, a program starts, or a log starts when the selected counter's value is above or below a specified setting.

back to the top

How to Add Counters to System Monitor

 * 1) Click Start, point to Administrative Tools, and then click Performance. If you select an object on a remote computer, you may experience a short delay as System Monitor refreshes the list to reflect objects that are present on that computer.
 * 2) Right-click the System Monitor Details pane, and then click Add Counters.
 * 3) To monitor any computer on which the monitoring console is run, click Use local computer counters. Or, to monitor a specific computer regardless of where the monitoring console is run, click Select counters from computer, and then specify a computer name.
 * 4) Under Performance object, click an object to monitor. By default, the Processor object is selected.
 * 5) Click All counters or click Select counters from the list, and then click one of the list items.
 * 6) Click Add.

back to the top

How to Define Counters and Thresholds for an Alert
 Click Start, point to Administrative Tools, and then click Performance. Double-click Performance Logs and Alerts, and then click Alerts. Right-click Alerts, click New Alert Settings, type a name for the alert, and then click OK. Click the General tab, type a descriptive comment for the alert, and then click Add. For each counter or group of counters that you want to add to the log, follow these steps:  To monitor counters from the computer on which the Performance Logs and Alerts service will run, click Use local computer counters.

Or, to monitor counters from a specific computer regardless of where the service is run, click Select counters from computer, and then specify the name of the computer you want to monitor.</li> Under Performance object, select an object to monitor.</li> Then select one or more counters to monitor.</li> To monitor all instances of the selected counters, click All Instances. Note that binary logs can include instances that are not available at log startup but that subsequently become available. Or, to monitor particular instances of the selected counters, click Select instances from list, and then click one or more instances to monitor.</li> Click Add, and then click Close.</li></ol> </li> In the Alert when the value is box, click Under or Over. In the Limit box, specify the value that triggers the alert.</li> In the Sample data every box, specify the amount and the unit of measure for the update interval.</li> Click the Action tab to determine which actions occur when an alert is triggered.</li> To record the alert in the Event Viewer logs, click to select the Log an entry in the application event log check box.</li> To send an alert message to a computer, click to select the Send a network message to check box, and then type the name of the computer you want to receive the alert message.</li> Click to select the Start performance data log check box to start a log file.</li> Click Run this program if you want a program to start when the alert criteria is reached. You can type the path to the program directly or click Browse to manually select the program you want to use.</li> Click the Schedule tab, and then configure the appropriate settings to start and stop logging either manually or at a scheduled time.</li></ol>

back to the top

How to Choose Which Data to Monitor
Start by monitoring the activity of the following components in the following order:
 * 1) Memory
 * 2) Processors
 * 3) Disks
 * 4) Network

The following list shows the minimum counters that are recommended for server monitoring. Note that when you examine specific resources, you should include other counters for the associated performance object. <ul> Component: Disk

Performance aspect that is being monitored: Usage

Counters to monitor: <ul> Physical Disk\ Disk Reads/sec</li> Physical Disk\ Disk Writes/sec</li> LogicalDisk\ % Free Space</li></ul>

You must interpret the % Disk Time counter carefully. Because the _Total instance of this counter may not accurately reflect utilization on multiple-disk computers, it is important to use the % Idle Time counter also. Note that these counters cannot display a value that exceeds 100 percent.

</li> <li>Component: Disk

Performance aspect that is being monitored: Bottlenecks

Counters to monitor: Physical Disk\ Avg. Disk Queue Length (all instances)</li> <li>Component: Memory

Performance aspect that is being monitored: Usage

Counters to monitor: <ul> <li>Memory\ Available Bytes</li> <li>Memory\ Cache Bytes</li></ul> </li> <li>Component: Memory

Performance aspect that is being monitored: Bottlenecks or leaks

Counters to monitor: <ul> <li>Memory\ Pages/sec</li> <li>Memory\ Page Reads/sec</li> <li>Memory\ Transition Faults/sec</li> <li>Memory\ Pool Paged Bytes</li> <li>Memory\ Pool Nonpaged Bytes</li></ul>

Although the following components are not specifically Memory object counters, they can be useful for memory analysis:

<ul> <li>Paging File\ % Usage object (all instances)</li> <li>Cache\ Data Map Hits %</li> <li>Server\ Pool Paged Bytes</li> <li>Server\Pool Nonpaged Bytes</li></ul> </li> <li>Component: Network

Performance aspect that is being monitored: Throughput

Counters to monitor: <ul> <li>Protocol transmission counters (varies with networking protocol); for TCP/IP:</li> <li>Network Interface\ Bytes total/sec</li> <li>Network Interface\ Packets/sec</li> <li>Server\ Bytes Total/sec or Server\ Bytes Transmitted/sec</li> <li>Server\ Bytes Received/sec</li></ul>

You may want to monitor other objects for network and server throughput as described in monitoring network activity.

</li> <li>Component: Processor

Performance aspect that is being monitored: Usage

Counters to monitor: Processor\ % Processor Time (all instances)</li> <li>Component: Processor

Performance aspect that is being monitored: Bottlenecks

Counters to monitor: <ul> <li>System\ Processor Queue Length (all instances)</li> <li>Processor\ Interrupts/sec</li> <li>System\Context switches/sec</li></ul> </li></ul>

back to the top

<div class="references_section">