MCSA/MCSE 70-290 Exam Prep: Managing and Maintaining a Microsoft Windows Server 2003 Environment (2nd Edition)
| Objective: Monitor and optimize a server environment for application performance.
Before you can optimize a server, you must understand its characteristics, including how it operates under a normal load and what areas are stressed when the load increases. This has a lot to do with the application type and load of the server. For example, a web server reacts differently to a load condition than a server that is hosting Terminal Services. The first step in optimization should be to establish a baseline. To establish a baseline for a server, you should log performance data for the server when it is under a normal load for an established period of time. You typically want to log at least a day, and sometimes even a week or more. This allows you to observe the various components of your server under normal load and stress circumstances. You should have a large enough sample so that you can observe all the highs and lows and determine what figures are averages for your server. After you establish this baseline, the next step is to observe your server under load and to identify any components that are limiting the overall performance of your server. The main four components that cause the majority of the bottlenecks in a server are the memory, disk, processor, and network interface. The following four subsections discuss optimizing resources associated with these vital server objects. Monitoring Memory Performance Objects
The Windows Server 2003 memory system uses a combination of physical memory and a swap file stored on the hard disk to provide space for the applications to run. Data in memory is written to the swap file through a process called paging. Paging is used to increase the amount of memory available to applications. Windows Server 2003 performs paging to make it seem to applications that the computer has more physical memory than is installed. The amount of virtual memory available on a computer is equal to its physical memory plus whatever hard disk space is configured for use as paging files. Because accessing data from a hard disk is many times slower than accessing it from memory, you want to minimize the frequency with which the server has to swap data to the hard drive. This can usually be accomplished simply by adding more physical memory. Here are some counters to watch to monitor memory performance:
Monitoring Disk Performance Objects
The disk subsystem can be a bottleneck, either directly or indirectly. If the access speed of the disk is slow, it negatively affects the load time of applications and the read and write time of application data. In addition, because Windows Server 2003 relies on virtual memory, a slow disk subsystem indirectly affects memory performance. Note: No More DISKPERF In previous versions of Windows, you were required to use the DISKPERF utility to enable the disk counters. Windows Server 2003 enables the counters by default.
Here are some key performance counters for the disk subsystem:
Note: Keep Your Data Accurate When you're recording a log file for the Disk objects, be sure not to record the file to the same drive being measured. You are not recording accurate values if you do, because the act of reading the object and writing to the drive adds a significant amount of workload.
Monitoring Process Performance Objects
The processor is the heart of your server. Most operations in the server are controlled either directly or indirectly by the processor. Most processor bottlenecks are caused by multiple processes running at the same time, requiring more cycles than the processor can deliver efficiently. This can be alleviated by replacing the processor with a faster model or by adding an additional processor in a multiprocessor-capable server. To identify problems with the processor, monitor the following counters:
Monitoring Network Performance Objects
Although not as common as processor, disk, or memory bottlenecks, thanks to the preponderance of high-performance 100MB and even 1,000MB NICs, there are occasions when the network card is a bottleneck. This is most likely to occur on web servers or terminal servers. To identify performance problems with the network interface, monitor the following counters:
Other network-related counters that may be worth monitoring include protocol-specific objects, such as ICMP, IP, TCP, and UDP. Make sure you understand the common performance counters and their meanings. In addition, know what ranges are normal and what values indicate that a specific hardware component needs to be upgraded. |
Категории