Useful System Tools Hidden in Windows part 3

How to Use Performance Monitor

For many years, the Performance Monitor tool stood alone. In Vista, it was combined with the Resource Monitor and the Reliability Monitor. It was also given a new structure for collecting data. The Performance Monitor can show you performance data in either real-time or from a log file. Data Collector Sets can be set to run immediately or on a schedule to collect and analyze specific aspects of your system.

Monitoring Tools, Performance Monitor (see Figure 11.6) displays a visual representation of your system so you can inspect a variety of components, beyond what the Resource Monitor shows you. Initially, you won’t see more than the % Process Time. You can add more performance metrics (called counters) by hitting the + sign.

performance1

Figure 11.6 Real-time Performance Monitor.

When you first see the number of possible counters and instances, the task of choosing which items to monitor can seem overwhelming. There are roughly 100 different Performance objects for any given system (you can monitor the local system or a remote one). Each of those objects contains counters. (There are way too many counters to know them all.) Once you have all your counters set up, you can make changes to the way they are displayed. For example, you can change the line colors for each counter to make it easier to determine which line you are watching. You can change the format of the display to a graph, a histogram, or a report (numeric display).

Data Collector Sets allow you to use System-defined sets (there is one for System Diagnostics and one for System Performance) or User-defined sets (which is empty to start with, you literally have to create your own). You can also look at Event Trace Sessions and Startup Event Trace Sessions.

The goal is to use Data Collector Sets to collect the data and then the Report sections to view the data collected. As shown in Figure 11.6, we ran a System Diagnostics report and then viewed the results in the Reports section.

Configuring the Performance Monitor to Display Results As a Web Page

The following steps show you how to open the Windows 7 Performance Monitor and configure it to save performance results for viewing in a in a web browser.

  1. Click the Start orb.
  2. In the Search box, type perfmon.exe.
  3. Click Performance Monitor.
  4. If a UAC window opens, click Yes.
  5. In the left pane, click Performance Monitor.
  6. Right-click in the Performance Monitor display area and click Save Settings As.
  7. Choose where you want to save the file.
  8. Type a name for HTML file.
  9. Click OK.
  10. Navigate to the saved HTML file and open it. It will display captured performance information in your browser.

As an admin, you would find it both time-consuming and monotonous to have to physically be at every computer to run Windows 7 Performance Monitor. Fortunately, network administrators or those with administrator rights can now remotely gain access to this feature and connect.

Connecting to a Remote Computer with Performance Monitor

The following steps show you how to connect Performance Monitor to another computer on the network. To complete these steps, you will need a working network connection and a connection to another computer on the network.

  1. Click the Start orb.
  2. In the Search box, type perfmon.exe.
  3. Click Performance Monitor.
  4. If a UAC window opens, click Yes.
  5. In the left pane, click Performance Monitor.
  6. On the top menu, click Action and then choose Click Connect to Another Computer.
  7. If you know the name of the computer you want to monitor, type that name; if you don’t know the name, click Browse to locate it.
  8. Click OK.

There are two requirements to viewing performance counters from a remote computer. First, the Performance Logs and Alerts firewall exception must be enabled on the remote computer. Second, users in the Performance Log Users group must also be listed inthe Event Log Readers group on the remote computer.

Creating Data Collector Sets from Performance Monitor

The following steps show you how to save perfmon data. You will have the opportunity to configure settings to complete this task.

  1. Click the Start orb.
  2. In the Search box, type perfmon.exe.
  3. Click Performance Monitor.
  4. If a UAC window opens, click Yes.
  5. In the left pane, click Performance Monitor.
  6. Click New and then click Data Collector Set. The New Data Collector Set Wizard opens.
  7. Type a Name for this data set.
  8. Click Next.
  9. Select a Root Directory for your saved data. Do not enter a back slash at the end of the directory name.
  10. Click Next to define a user for the Data Collector Set to run as, or click Finish to save the current settings and exit.

After you click Finish and return to the Windows Performance Monitor, there are a few things you can do with this saved perfmon data (as you will learn in the following section).

Editing the Properties of a Created Data Collector Set

The following steps build on the previous steps and show you how to modify the properties of a Data Collector Set.

  1. Click the Start orb.
  2. In the Search box, type perfmon.exe.
  3. Click Performance Monitor.
  4. If a UAC window opens, click Yes.
  5. In the left pane, click User Defined to expand it.
  6. Click User Defined.
  7. Right-click the data collection set for which you would like to modify the properties and choose Properties.
  8. After completing your modifications, click OK.

To start the Data Collector Set immediately, right-click it and choose Start.

After you have set up your data collectors, you can save the data in the form of logs that you can review later.

Not all log files are created equal. If you create a log file in Windows 7, it is not backward compatibility with earlier versions of Windows. However, log files created in earlier versions are viewable in Windows 7.

Setting Up a Log Schedule for a Data Collector Set

The following steps show you how to create a log schedule for a Data Collector set.

  1. Click the Start orb.
  2. In the Search box, type perfmon.exe.
  3. Click Performance Monitor.
  4. If a UAC window opens, click Yes.
  5. Click Data Collector Sets.
  6. Double-click User Defined.
  7. In the console pane, right-click the name of the Data Collector Set that you want to schedule and choose Properties.
  8. Click the Schedule tab and click Add.
  9. Using the drop-down arrows, configure the Beginning Date, Expiration Date, and the Start Time (under Launch).
  10. Click OK.
  11. Click the Stop Condition tab.
  12. Select the Overall Duration checkbox.
  13. Select the Stop When All Data Collectors Have Finished checkbox. (This permits the data collector to complete recording the most recent values before the Data Collector Set is stopped.)
  14. Click OK.

You can also configure how your data is archived. If you log reports on a daily basis, log files will generate automatically and start to consume disk space. You can define preset limits and actions to take with these files.

Configuring Data Collector Sets to Delete the Oldest Log File When Starting Data Collection

The following steps show you how to configure Data Collector Sets to delete the oldest log file when starting data collection.

  1. Click the Start orb.
  2. In the Search box, type perfmon.exe.
  3. Click Performance Monitor.
  4. If a UAC window opens, click Yes.
  5. Click Data Collector Sets.
  6. Double-click User Defined.
  7. In the console pane, right-click the name of the Data Collector Set that you want to schedule and choose Data Manager.
  8. Select the Maximum Folders checkbox.
  9. In the drop down below, choose 5.
  10. Change the Resource policy to Delete Oldest.
  11. Select the Apply Policy Before the Data Collector Set Starts checkbox.
  12. Click Apply.
  13. Click OK.

In the previous example, with the Maximum Folders check box selected, previous data will be deleted when the limit is reached. And since the Apply Policy Before the Data Collector Set Starts checkbox was chosen as well, previous data will be deleted before the Data Collector Set creates its next log file.

It’s a good idea to know your Resource policy (Delete Oldest or Delete Largest) before making other data choices on the Data Manager tab. Minimum Free Disk Space, Maximum Folders, and Maximum Root Path all revolve around your policy. Here are some other points to understand when working with these features:

  • Minimum Free Disk: This is the disk space that needs to be available on the drive where you store the log data. When you choose this, previous data will be deleted when the limit is reached.
  • Maximum Folders: This is the maximum total of subfolders that can be in the Data Collector Set data directory. Like the Minimum Free Disk Space option, previous data will be deleted when the limit is reached.
  • Maximum Root Path Size: This represents the total size (including subfolders) of the data directory for the Data Collector Set. Be advised that choosing this option causes your Minimum free disk and Maximum Folders limits to be overridden and previous data will be deleted when the limit is reached.

Unless you have a trained eye or have spent some time reading reports, you might not understand the results of the data you have collected. To help with this, Windows 7 Performance Monitor provides assistance diagnosing your reports. These reports are easy to understand and contain a wealth of data that helps you pinpoint potential problems (see Figure 11.7).

perfor22

Figure 11.7 Viewing a System Diagnostics report in Performance Monitor.

Enabling and Viewing a System Diagnostics Report on a Data Collection Log

The following steps show you how to enable and view a System Diagnostics report on a data collection log. The steps below show you exactly how this is accomplished.

  1. Click the Start orb.
  2. In the Search box, type perfmon.exe.
  3. Click Performance Monitor.
  4. If a UAC window opens, click Yes.
  5. Click Data Collector Sets.
  6. Double-click System.
  7. Right-click System Diagnostics and choose Start.
  8. The next time your data collection starts and finishes, a diagnostic report is available. View it by double-clicking Reports.
  9. In the left pane, double-click System.
  10. Click System Diagnostics.
  11. Reports will show up in the view pane. Identify the report you would like to view and double-click it. A System Diagnostic report opens.
  12. To view details on items, click the Down arrows to access the data collected and reported on.

One simple method to run the diagnostic test is to open a command prompt (elevated or non-elevated—if it is non-elevated, it will ask you for permission to proceed) and then typeperfmon /report. If you wanted to run a different Data Collector Set, you could typeperfmon /report “Name of Data Collector Set” to start it.

thanks

In next tutorial i will write about another hidden tool in windows Computer Management and Administrative Tools

No Comments

Add a Comment

Your email address will not be published. Required fields are marked *