In general terms, performance is
the measure of how quickly a computer completes application and system tasks.
Overall system performance might be limited by the access speed of the physical
hard disks, the amount of memory available to all running processes, the top
speed of the processor, or the maximum throughput of the network interfaces.
Key features in performance monitoring:
Key features for monitoring performance in Windows
Server® 2008 R2 and Windows® 7 include the following.
Data Collector Sets
An important component of Windows Performance Monitor is the Data Collector
Set, which is an XML object that groups data collectors into reusable elements
for use with different performance monitoring scenarios. Once a group of data
collectors is stored as a Data Collector Set, operations such as scheduling can
be applied to the entire set through a single property change. You can schedule
repeated collection of a Data Collector Set to create logs, load it in
Performance Monitor to see the data in real time, and save it as a template to
use on other computers.
Windows Performance Monitor also includes default Data Collector Set
templates to help you begin collecting performance data immediately.
Wizards
and templates for creating logs
You can also add counters to log files and schedule
the start, stop, and duration of collection through a wizard interface. In
addition, if you save this configuration as a template, you can collect the
same log on subsequent computers without repeating the data collector selection
and scheduling processes. Performance Logs and Alerts features have been
incorporated into the Windows Performance Monitor for use with any Data
Collector Set.
Unified property configuration for all data
collection, including scheduling
Whether you create a Data Collector Set for one-time
use or to log activity on an ongoing basis, the interface for creation,
scheduling, and modification is the same. If a Data Collector Set proves to be
useful for future performance monitoring, you do not need to recreate it. You
can reconfigure or copy it as a template.
User-friendly diagnosis reports
Users of Server Performance Advisor in
Windows Server 2003 can find the same kinds of diagnosis reports in
Windows Performance Monitor. You can generate reports more quickly and can
generate reports from data collected using any Data Collector Set. This allows
you to repeat reports and assess how recommended changes have affected
performance or modified the report recommendations. Windows Performance Monitor
also includes preconfigured performance and diagnosis reports for quick
analysis and troubleshooting.
Benefits of Windows Performance
Monitor
The most significant advantage of Windows Performance
Monitor over previous individual tools like System Monitor, Performance Logs
and Alerts, and Server Performance Advisor is that it combines the
functionality of those tools into a single interface with common methods for
defining the data to be collected. The Data Collector Set makes a group of
counters portable.
In this guide
- The
following are key scenarios for monitoring performance and reliability:
- Scenario
1: Monitor specific system activity using Performance Monitor
- Scenario
2: Create a Data Collector Set from Performance Monitor
- Scenario
3: Create and schedule logs from a Data Collector Set
- Scenario
4: View log data in Performance Monitor
- Scenario
5: View a diagnosis report
To start Windows Performance Monitor
·
Click Start, click
in the Search box, type perfmon.msc, and then press ENTER.
Prerequisites for monitoring specific
system activity using Performance Monitor
To complete this task, ensure that you meet the following requirements:
- Windows
Server 2008 R2 or Windows 7 is installed.
- You are logged on as
a member of the local Administrators or Performance
Log Users group.
Steps for monitoring specific system
activity using Performance Monitor
To start Performance Monitor
- Click Start,
click in the Search box, type perfmon.msc,
and then press ENTER.
- In the navigation
tree, expand Monitoring Tools, and then click Performance
Monitor.
Performance Monitor enables you to add specific performance counters to the
current view.
To add counters to the current Performance
Monitor view
- In the menu bar
above the Performance Monitor graph display, either click the Add button
(+) or right-click anywhere in the graph and click Add
counters from the menu. The Add Counters dialog
box opens.
- In the Available
Counters section, select counters to view in the Performance
Monitor display. The following counters are suggested for this example:
- Memory: % Committed
Bytes In Use
- Memory: Page
Faults/sec
- PhysicalDisk: Disk
Read Bytes/sec
- PhysicalDisk: Disk
Reads/sec
- PhysicalDisk: Disk
Write Bytes/sec
- PhysicalDisk: Disk
Writes/sec
- Processor: % Idle
Time
- Processor:
Interrupts/sec
- System: Threads
See Navigating
the Add Counters dialog box for more information.
- When you are
finished selecting counters, click OK.
Scenario 2: Create a Data Collector Set
from Performance Monitor
Overview: Creating a Data Collector Set
from Performance Monitor
Real-time viewing of data collectors is just one way to use Performance
Monitor. Once you have created a combination of data collectors that show you
useful information about your system in real time, you can save them as a Data
Collector Set, which is the building block of performance monitoring and
reporting in Windows Performance Monitor. It organizes multiple data collection
points into a single component that can be used to review or log performance.
In this task, you will create a Data Collector Set from counters that are
selected in the real-time Performance Monitor view.
Prerequisites for creating a Data Collector
Set from Performance Monitor
To complete this task, ensure that you meet the following requirements:
- Windows
Server 2008 R2 or Windows 7 is installed.
- You are logged on as
a member of the local Administrators or Performance
Log Users group.
- Windows Performance
Monitor is running.
- At least one data
collector is selected for display in Performance Monitor.
Known issues for creating a Data Collector
Set from Performance Monitor
In order to use the Windows Kernel Trace provider, you must be logged on as
a member of the local Administrators group. However, many
other data collectors including the ones listed in the previous example are
accessible to members of the Performance Log Users group.
Steps for creating a Data Collector Set
from Performance Monitor
To create a Data Collector Set from
Performance Monitor
- Begin with the
display of counters from the previous procedure. If you no longer have
these settings, start Performance Monitor and add counters to create a
custom view you want to save as a Data Collector Set.
- Right-click anywhere
in the Performance Monitor display pane, point to New, and
click Data Collector Set. The Create New Data Collector Set
Wizard starts. The Data Collector Set created will contain all of the data
collectors selected in the current Performance Monitor view.
- Type a name for your
Data Collector Set and click Next.
- The Root
Directory will contain data collected by the Data Collector Set.
Change this setting if you want to store your Data Collector Set data in a
different location than the default. Browse to and select the directory,
or type the directory name.
- 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 clicking Next,you
can configure the Data Collector Set to run as a specific user. Click the Change button
to enter the user name and password for a different user than the default
listed.
- Click Finish to
return to Windows Performance Monitor.
- To view the
properties of the Data Collector Set or make additional changes, select Open
properties for this data collector set. You can get more information
about the properties of Data Collector Sets by clicking the Help button
in the Properties page.
- To start the Data
Collector Set immediately (and begin saving data to the location
specified in Step 4), click Start this data collector set now.
- To save the Data
Collector Set without starting collection, click Save and close.
Scenario 3: Create and schedule logs from a
Data Collector Set
Overview: Create and schedule logs from a
Data Collector Set
Once you have chosen data collectors that provide you with meaningful
information about your system performance, you can store the data as logs for
later review.
Prerequisites for creating logs from a Data
Collector Set
To complete this task, ensure that you meet the following requirements:
- Windows
Server 2008 R2 or Windows 7 is installed.
- You are logged on as
a member of the local Administrators or Performance
Log Users group.
- Windows Performance
Monitor is running.
- At least one Data
Collector Set has been created and saved (you can use the Data Collector
Set that you created in Scenario 2).
Steps for creating logs from a Data
Collector Set
By default, a Data Collector Set generates a log file. After creating a
Data Collector Set, you can use the Data Management procedures to configure the
storage options for each Data Collector Set to include information about the
log in the file name, choose to overwrite or append data, and limit the file
size of individual logs.
To schedule the Start condition for a Data
Collector Set
- In Windows
Performance Monitor, expand Data Collector Sets and click User
Defined.
- In the console pane,
right-click the name of the Data Collector Set that you want to schedule
and click Properties.
- Click the Schedule tab.
- Click Add to
create a start date, time, or day for data collection. When configuring a
new data collector set, ensure that this date is after the current date
and time.
- If you do not want
to collect new data after a certain date, select Expiration date and
choose a date from the calendar.
- When finished, click OK.
To schedule the Stop condition for a Data
Collector Set
- In Windows
Performance Monitor, expand Data Collector Sets and click User
Defined.
- In the console pane,
right-click the name of the Data Collector Set that you want to schedule
and click Properties.
- Click the Stop
Condition tab.
- To stop collecting
data after a period of time, select the Overall duration check
box and choose the quantity and units. Note that your overall duration
must be longer than the interval at which data is sampled in order to see
any data in the report. Do not select an overall duration if you want to
collect data indefinitely.
- Use limits to
segment data collection into separate logs by selecting the When a
limit is reached, restart the data collector set check box. If
both limit types are selected, data collection will stop or restart when
the first limit is reached.
- Select Duration to
configure a time period for data collection to write to a single log
file.
- Select Maximum
Size to restart the Data Collector Set or to stop collecting
data when the log file reaches the limit.
- If you have
configured an overall duration, you can click the Stop when all
data collectors have finished check box to allow all data
collectors to finish recording the most recent values before the Data
Collector Set is stopped.
- When finished, click OK.
After you have saved the properties for your
schedule, the display in the snap-in window changes to show the name of the
log, the type of data the log collects, and the output directory and file name
where the log is stored. You can double-click the name of the log to add or
remove data collectors from it or change the file name, name format, and
whether the log overwrites or appends when the data collector is restarted.
Next, you can configure how data is archived for the Data Collector Set.
To configure data management for a Data
Collector Set
- In Windows
Performance Monitor, expand Data Collector Sets and click User
Defined.
- In the console pane,
right-click the name of the Data Collector Set that you want to configure
and click Data Manager.
- On the Data
Manager tab, you can accept the default values or make changes
according to your data retention policy. See the Data Manager properties
table for details on each option.
- When the Minimum
free disk or Maximum folders check box is
selected, previous data will be deleted according to the Resource
policy you choose (Delete largest or Delete oldest) when the
limit is reached.
- When the Apply
policy before the data collector set starts check box is
selected, previous data will be deleted according to your selections
before the Data Collector Set creates its next log file.
- When the Maximum
root path size check box is selected, previous data will be
deleted according to your selections when the root log folder size limit
is reached.
- Click the Actions tab.
You can accept the default values or make changes. See the Actions
properties table for details on each option.
1.
When you have finished making
your changes, click OK.
Data Manager properties
The following table explains the options that you can
configure on the Data
Manager tab
of the Properties dialog box (accessed by right-clicking
the Data Collector Set and clicking Data
Manager).
Scenario 4: View log data in Performance
Monitor
Overview: View log data in Performance
Monitor
You can view previously collected logs in Windows Performance Monitor as
reports or as Performance Monitor data.
In this task you will learn how to open log data in the Performance Monitor
display. All of the display options included in real-time monitoring with
Performance Monitor are available for log viewing.
Prerequisites for viewing log data in
Performance Monitor
To complete this task, ensure that you meet the following requirements:
- Windows
Server 2008 R2 or Windows 7 is installed.
- You are logged on as
a member of the local Administrators or Performance
Log Users group.
- Windows Performance
Monitor is running.
- At least one log
file is available from a previously-created Data Collector Set.
Steps for viewing log data in Performance
Monitor
The following procedures describe how to load and view log data in
Performance Monitor.
To load log data in Performance Monitor
- Start Windows
Performance Monitor.
- In the navigation
tree, expand Reports, expand User Defined, and
expand the Data Collector Set whose log data you want to view.
- In the navigation
pane, click the name of the log that you want to view. The log data will
open in the Report view.
- Click the Performance
Monitor View button in the toolbar.
Navigating the log view in Performance
Monitor
- Log data opens in
the Line graph view by default. While in this view, the X axis of the
graph represents the total time included in the log.
- To view only a
specific time frame in the display, click and drag in the display until a
section is highlighted, then click the Zoom button or
press CTRL+Z.
- For other viewing
options, see the description for viewing system activity in real time in
Scenario 2.
Scenario 5: View a diagnosis report
Overview: View a diagnosis report
Windows Performance Monitor includes default system reports for assessing
system health and diagnosing system performance issues.
In this scenario, you will collect data to view the System Diagnostics
report.
Prerequisites for viewing a diagnosis
report
To complete this task, ensure that you meet the following requirements:
- Windows
Server 2008 R2 or Windows 7 is installed.
- You are logged on as
a member of the local Administrators group, or you have
started Windows Performance Monitor with elevated privileges.
- Windows Performance
Monitor is running.
Steps for viewing a diagnosis report
To view the System Diagnostics report
- Start Windows
Performance Monitor.
- In the navigation
tree, expand Data Collector Sets and expand System.
- Right-click System
Diagnostics and click Start. Data Collection will
begin.
- In the navigation
tree, expand Reports, expand System, expand System
Diagnostics, and click the current date.
- When data collection
and report generation are complete, the System Diagnostics report will
|
|
|
This
report collects data for 60 seconds. It may take up to an additional 60
seconds for the report to be generated.
|
Source: http://technet.microsoft.com/en-us/library/dd744567(v=ws.10).aspx