Microsoft IIS 6.0Administrator's Consultant

Monitoring and performance tuning are essential parts of Web administration. You monitor servers to ensure that they’re running smoothly and to troubleshoot problems as they occur. You tune the performance of servers to achieve optimal performance based on the current system resources and traffic load. Microsoft Windows Server 2003 includes several tools that you’ll use to monitor Internet Information Services (IIS). The key tools are the Performance tool, Windows event logs, and the IIS access logs. You’ll often use the results of your monitoring to optimize IIS.

Performance tuning is as much an art as it is a science. You often tune performance based on trial and error. You adjust the server, monitor the server’s performance over time, and then gauge the success of the updated settings. If things aren’t working as expected, you adjust the settings again. In an ideal world you’d have staging or development servers that are similar in configuration to your production servers to work with while tuning server performance. Then, once you’ve made adjustments that worked in staging, you could configure these changes on the production servers.

Monitoring IIS Performance and Activity

Monitoring IIS isn’t something you should do haphazardly. You need to have a clear plan—a set of goals that you hope to achieve. Let’s look at some reasons that you might want to monitor IIS and the tools you can use to do this.

Why Monitor IIS?

Troubleshooting performance problems is a key reason for monitoring. For example, users might be having problems connecting to the server, and you might want to monitor the server to troubleshoot these problems. Here, your goal would be to track down the problem using the available monitoring resources and then to solve it.

Another common reason for wanting to monitor IIS is to use the results to improve server performance. Improving server performance can reduce the need for costly additional servers or additional hardware components, such as CPUs and memory. This allows you to squeeze additional processing power out of the server and budget for when you really need to purchase new servers and components.

To achieve optimal performance, you need to identify performance bottlenecks, maximize throughput, and minimize the time it takes for World Wide Web (WWW) applications to process user requests. You achieve this by doing the following:

Unfortunately, there are often tradeoffs to be made when it comes to resource usage. For example, as the number of users accessing IIS grows, you might not be able to reduce the network traffic load, but you might be able to improve server performance by optimizing Web pages and IIS applications.

Getting Ready to Monitor

Before you start monitoring IIS, you should establish baseline performance metrics for your server. To do this, you measure server performance at various times and under different load conditions. You can then compare the baseline performance with subsequent performance to determine how IIS is performing. Performance metrics that are well above the baseline measurements might indicate areas where the server needs to be optimized or reconfigured.

After you establish the baseline metrics, you should formulate a monitoring plan. A comprehensive monitoring plan involves the following steps:

  1. Determine which server resources should be monitored to help you accomplish your goal

  2. Set filters to reduce the amount of information collected

  3. Configure performance counters to watch the resource usage

  4. Log the usage data so that it can be analyzed

  5. Analyze the usage data and replay the data as necessary to find a solution

These procedures are examined later in this chapter in the section entitled “Monitoring IIS Performance.” Although you should develop a monitoring plan in most cases, there are times when you might not want to go through all these steps to monitor IIS. In this case, use the steps that make sense for your situation.

Monitoring Tools and Resources

The primary tools you’ll use to monitor IIS are:

Many other monitoring tools are available in the Microsoft Windows Server 2003 Resource Kit. The resource kit tools you’ll want to use include:

Категории