Optimizing Servers for Application Performance

Monitoring Server Performance and Activity

One of the basic steps to optimizing server performance is to monitor server performance. To optimize server performance, you can perform a number of tasks, such as:

In order to optimize server performance for whatsoever reason, you need to start by monitoring the server. In most cases, before server monitoring commences, it is common practice to establish baseline performance metrics for the specific server. Baseline performance metrics are established by measuring the performance of a particular server under various conditions, at different times of the day, week, and month, and when the hardware and software configuration changes. Based on the baseline metrics which you define for the server, you would need to optimize the server when performance of the server by far exceeds your baseline metrics.

It is recommended to formulate a thorough server monitoring plan once you have established your baseline performance metrics for a specific server.
A few elements that should be incorporated into a server monitoring plan are:

Another key component to monitoring server performance is to identify bottlenecks. A bottleneck can be described as a condition which is created by a particular resource which in turn prevents other resources from operating optimally.

Bottlenecks occur when:

Through monitoring and analyzing the event data that is collected, you can identify which resources are slowing the system down and causing poor system performance. Server and system performance is usually impacted by the following:

The subsystems which should be monitored when monitoring system performance are listed below. These subsystems should be monitored and optimized to tune the server for application performance are:

Monitoring system or server performance in Windows Server 2003 remains fairly unchanged when compared to the tools and features utilized in Windows 2000.

The main enhancements introduced in Windows Server 2003 specific to performance monitoring are listed below:

Utilizing System Monitor
You can use System Monitor to collect and analyze performance data for both the local computer and remote computer, and to track various processes running on a Windows Server 2003 or Windows 2000 system. The System Monitor utility is located within the Performance MMC snap-in. You have be a member of one of the security groups listed below to utilize System Monitor to monitor server performance:

A few key activities that can be performed using System Monitor and the main features of System Monitor are listed below:

How to select the counters you want to monitor

  1. Under the Administrative Tools menu, select Performance to open the Performance console.
  2. In the left pane, select System Monitor.
  3. To view current activity, click the View Current Activity button on the Performance Monitor toolbar.
  4. To add the counters which you want to monitor, click the Add button on the Performance Monitor toolbar.
  5. The Add Counters dialog box opens, displaying a number of fields.
  6. If you want to monitor the local computer, click the Use Local Computer Counters option.
  7. If you want to monitor a different computer, click Select Counters From Computer, and choose the server which you want to monitor.
  8. Select the type of performance object you want to work with from the Performance Object drop down list.
  9. If you want to monitor each counter associated with the particular performance object, select the All Counters option.
  10. If you want to choose specific counters, choose the Select Counters From List option and proceed to select the counters.
  11. 1
  12. If you want to monitor all counter instances, click the All Instances option.
  13. 1
  14. If you want to select specific counter instances, click the Select Instances From List option and then choose the counter instances to monitor.
  15. 1
  16. Click Add to add the counters for the performance object.
  17. 1
  18. Click Close after you have added all the counters which should be tracked.

Utilizing Performance Logs And Alerts
By using Performance Logs And Alerts included in the Performance console, you can track the performance of a server by creating counter logs, trace logs, and defining alerts.

How to start Performance Logs And Alerts

  1. Click Start, Administrative Tools, and then click Performance.
  2. Expand the Performance Logs And Alerts node.
  3. You can now manage existing counter logs, trace logs and alerts; and configure new counter logs, trace logs and alerts, or delete existing counter logs, trace logs and alerts.

How to manage counter logs and trace logs

  1. Open the Performance console
  2. Expand the Performance Logs And Alerts node.
  3. To configure a counter log, select Counter Logs OR select Trace Logs to configure and manage trace logs.
  4. The right pane would display or list any existing logs.
    • A red log symbol signifies that logging has stopped
    • A green log symbol signifies that logging is active.
  5. You can manage existing counter and trace logs by selecting the appropriate log entry in the right pane, and then selecting one of the following options from the shortcut menu:
    • Properties, to open and view the properties dialog box of the particular counter or trace log.
    • Delete, to delete the counter or trace log
    • Start, to start logging
    • Stop, to stop current logging
    • Save Settings As, to save the log configuration as a Web page
  6. You can create a new counter log, or trace log by selecting the log which you want to create, clicking in the right pane and then selecting New Log Settings from the shortcut menu.

How to create a new counter log

  1. Open the Performance console
  2. Expand the Performance Logs And Alerts node.
  3. Right-click Counter Logs, and then select New Log Settings from the shortcut menu.
  4. When the New Log Settings dialog box opens, enter a name for the new counter log, and then click OK.
  5. The counter log file Properties dialog box opens next, with the General tab displaying. This is the location where you define the objects and counters which you want to track.
  6. If you want to add counters for a specific performance object, click the Add Objects button. When the Object dialog box opens, select the objects which you want to add. In this case, all counters of the selected object will be tracked or logged.
  7. If you want to monitor only specific counters, click the Add Counters button. When the Select Counters dialog box opens, select the specific counters that should be added.
  8. In the Sample Data Every field, set the sample interval when data should be collected, and choose a time unit.
  9. In the Run As box enter the name of the account under which the log should run. Click Set Password to enter the password associated with the account in the Set Password dialog box.
  10. Click the Log Files tab to specify the type of log file which should be created. Counter logs are by default saved as binary files in the %SystemDrive%\PerfLogs directory.
  11. 1
  12. In the Log File Type drop down list box, select between the following options:
    • Text File (Comma Delimited)
    • Text File (Tab Delimited)
    • Binary File
    • Binary Circular File
    • SQL Database
  13. Select the End File Names With checkbox if you want to include a suffix for each new file which is created when the counter log runs.
  14. 1
  15. In the Start Numbering At box, enter the first serial number for the log if an automatic numeric suffix is utilized.
  16. 1
  17. You can specify a comment for the counter log in the Comment box.
  18. 1
  19. Click the Schedule tab to indicate when logging should start and stop. You can configure logging to either start manually or automatically at a specific date, the action that should occur, and when the log file should be closed.
  20. 1
  21. After you have configured the logging schedule, click OK.

How to create a new trace log

  1. Open the Performance console
  2. Expand the Performance Logs And Alerts node.
  3. Right-click Trace Logs, and then select New Log Settings from the shortcut menu.
  4. When the New Log Settings dialog box opens, enter a name for the new trace log, and then click OK.
  5. The trace log file Properties dialog box opens next, with the General tab displaying. This is the location where you define trace log properties.
  6. To trace operating system events, click the Events Logged By System Provider option and then select the operating system events that should be traced.
  7. To trace nonsystem providers, click the Nonsystem Providers option, and then click Add. When the Add Nonsystem Providers dialog box opens, select the provider you want to track.
  8. In the Run As box enter the name of the account under which the log should run. Click Set Password to enter the password associated with the account in the Set Password dialog box.
  9. Click the Log Files tab to specify the type of log file which should be created.
  10. In the Log File Type drop down list box, select between the following options:
    • Sequential Trace File
    • Circular Trace File
  11. Click the Configure button to set the location, filename, and log file size.
  12. 1
  13. Click the Schedule tab to indicate when logging should start and stop. You can configure logging to either start manually or automatically at a specific date, the action that should occur, and when the log file should be closed.
  14. 1
  15. Click the Advanced tab to configure the buffer settings for the log file.
  16. 1
  17. Click OK.

How to create an alert

  1. Open the Performance console
  2. Expand the Performance Logs And Alerts node.
  3. Right-click Alerts, and then select New Alert Settings from the shortcut menu.
  4. When the New Alert Settings dialog box opens, enter a name for the new alert, and then click OK.
  5. The alert file Properties dialog box is displayed next. This is the location where you can configure alert properties.
  6. Click the Add button on the General tab to specify which counters you want to track.
  7. Specify the condition when the alert should be generated for the counter.
  8. In the Run As box, enter the name of the account which will be utilized to generate the alert.
  9. Click the Action tab to configure the action that should occur when the alert is generated:
    • Log An Entry In The Application Event Log; an entry will be logged which you can view through Event Viewer.
    • Send A Network Message To; results in a message being sent.
    • Start Performance Data Log; causes an existing counter log to be run.
    • Run This Program; causes a command file to run.
  10. Click OK.

Utilizing Task Manager
Task Manager is the main tool utilized to manage applications. To open Task Manager, use one of the following methods:

The Application tab of the Task Manager tool displays the status of applications which are currently running. The management functions which you can perform by clicking the buttons located at the bottom of the Application tab are:

You can perform various application specific management functions by right-clicking an application and then selecting between the available options on the shortcut menu:

Monitoring Memory Usage

When you encounter system performance issues, the main component that should be monitored is memory usage. Through System Monitor, you can configure a number of counters of the memory object which you want to monitor.

The most important performance counters which you should monitor to detect memory issues are:

The performance counters which should be monitored to detect bottlenecks or memory leaks are:

One of the most common issues that affect server performance is memory leaks which are caused by incorrect application code. A few strategies which you can use to rectify this are:

How to optimize or tune memory when you suspect a memory bottleneck

The counters which should be monitored to detect low memory situations are:

The counters which should be monitored to detect excessive paging are:

How to optimize the paging file for better performance

Monitoring Network Activity

When you monitor network objects, you would basically be tracking network traffic and examining the usage of server resources. Flaws in the network architecture can lead to problems with server memory. The important counters which should be tracked to monitor the performance of the network for possible bottlenecks are:

How to solve network performance issues are:

Monitoring Processor Activity

If you want to determine how processors are being utilized on the server, you should monitor processor activity. The factors that need to be kept in mind when monitoring processor activity are:

Processor bottlenecks are typically caused by:

The important performance counters that should be tracked to monitor the processor element of the server for bottlenecks are:

The counters which you should monitor to detect usage issues are:

How to optimize the processor subsystem

Monitoring Disk Activity

Monitoring disk usage and activity is important if you want to optimize the performance of the server, or more efficiently balance the load of your servers. It is recommended to log performance data to a different computer or disk so that it does not affect the data which you are monitoring.

The important counters which you should monitor to track disk performance of a server are:

How to solve disk performance issues and optimize disk activity on a server



Top 5 Free Networking Tools

Bookmark Optimizing Servers for Application Performance

Latest Blog Posts


English English GermanGerman SpanishSpanish FrenchFrench ItalianItalian PortuguesePortuguese RussianRussian DutchDutch
GreekGreek HindiHindi JapaneseJapanese KoreanKorean ChineseChinese Chinese (Simplified)Chinese (Simplified) ArabicArabic

Copyright 2009 Tech-FAQ. All rights reserved. Privacy Policy.