Everyday Computing Advanced Computing The Internet At Home Health, Mind & Body Making & Managing Money Sports & Leisure Travel Beyond The Classroom
Certification
Databases
Networking
Programming
Win a Trip to New York City to see Monty Python's SPAMALOT!
Windows Server 2003 For Dummies

Monitoring the Windows Server 2003 Performance Monitor


Adapted From: Windows Server 2003 For Dummies

Windows 2003's performance monitor utility (which is now called System Monitor) is an under-appreciated work of inspired genius. You will come to rely on this outstanding tool to help you with all types of troubleshooting.

When you first launch System Monitor (Start --> Administrative Tools --> Performance), it presents readings from three default counters. With a little work and planning, System Monitor can offer a broad range of useful information about the performance of your computer system and network.

You use the primary display of System Monitor to monitor either real-time or recorded measurements. Depending on which toolbar button you click, the display area can show measurements in graph form (such as an EKG), in histogram form (like a thermometer), or in report form (like a budget).

Countin' yer objects

Performance is measured on a counter and object basis. Note that everything in the Windows 2003 environment is an object, and each object has its own specific counters that measure certain aspects of the performance or activities of that object. The full context of performance is based on the following:

  • Computer: The source system of the object
  • Object: The subsystem of interest
  • Counter: The aspect of performance of interest
  • Instance: The specific object to be measured when multiple objects of the same type exist on a single system

Counters are added to the display area by clicking the big plus sign button on the System Monitor toolbar. This reveals the Add Counters dialog box, where you can select the context of the counters you want displayed. If you click the Explain button in this dialog box, details about the selected counter are revealed.

Here are some of the more important object and counter pairs to watch (in the following list, the object name appears to the left, followed by a backward slash, followed by the counter name):

  • Server\Bytes Total/sec: Shows how much data your server is handling over time (for a basic measurement of how busy your system is). Other counters for the server object, such as Sessions Errored Out, Work Item Shortages, Errors System, and Blocking Requests Rejected, can all indicate potential system bottlenecks.
  • Memory\Pages/sec: Shows how frequently the server is moving data from memory to disk, and vice versa. If this number gets large (more than 2,500 pages per second on an average server), it can indicate a shortage of RAM on your server.
  • PhysicalDisk\Avg. Disk Queue Length: Indicates how many disk requests are pending service. If this number stays over 2.0 for long, it can indicate a disk drive that's too slow to handle its load or one that's overwhelmed by current disk activity. Sometimes, this indicates a need for a faster drive or disk controller, or even a faster disk subsystem.

The objects used to monitor disk activity can cause performance problems even when System Monitor is not recording them. Therefore, by default, Windows 2003 enables only the PhysicalDisk counters and not the LogicalDisk counters. Using the DISKPERF command-line tool, you can enable or disable both disk objects. For complete usage information, issue the diskperf /? command from a command prompt.

Of logs and alerts

A major benefit of System Monitor is obtained through its logging capabilities. Through logs, you're able to capture performance data that you can review later. This not only enables you to collect data over extended periods of time without having to sit and watch, but also creates a historical paper trail for baselining, troubleshooting, and capacity planning.

Log files are created using the Counter Logs and Trace Logs selections of the Performance utility's main window. Counter Logs are used to record the measurements of specific counters (not just entire objects). Trace Logs are used to record memory and resource events.

Log files are created by highlighting either Counter Logs or Trace Logs in the left pane, right-clicking in the right pane, and then choosing New Log Settings. You need to name the log file and define the items it will record. For example, you may name the file server 1-2-2-02-cpu.log and record measurements from the CPU object. After you record a log file, you can view its content in the System Monitor display by clicking the View Log Data button (it looks like a cylinder) on the toolbar.

Another benefit (perhaps not so major) stems from the capability to define alerts. Alerts allow administrators to instruct System Monitor to watch certain counters and send a message when preset values are reached. Administrators use Alert view to issue warnings when disk space is running low or when network or CPU utilization becomes dangerously high. Think of Alert view as a type of system alarm capability.

Generated whenever a counter's measurement crosses its defined threshold, an Alert event can do the following:

  • Record an item in the Application log of Event Viewer
  • Send a network message
  • Execute a batch file
  • Start logging performance data

You can define alerts in the Alerts area of the Performance utility's main window. Just select the Alert component in the left pane, right-click in the right pane, and choose New Alert Settings.

Related Articles
Viewing a Portrait of the Windows Server 2003 Family
Surviving the Windows Server 2003 Installation Process
Five Ways to Troubleshoot Microsoft Server 2003 on a Network
Install Service Packs to Fend off Computer Viruses
Ward Off Computer Viruses with Scheduled Scans
Related Titles
Windows Home Server For Dummies
Windows Server 2003 For Dummies
Storage Area Networks For Dummies
Firewalls For Dummies, 2nd Edition
SAP NetWeaver For Dummies