Performance Monitor provides a visual display of built-in Windows performance counters, either in real time or as a A-to Review historical data. You can add performance counters to performance Monitor by dragging and dropping, or by creating custom Data Collector Set S. It features multiple graph views to enable the visually review performance log data, as well as custom views that CA N is exported as Data Collector sets for use with performance and logging features.
1,open Performance Monitor
Click "Windows+r" and press ENTER to open performance Monitor
Divided into two pane,right Pane have the system Summary, the main show is the real-time monitoring data of the memory,cpu,disk,network performance.
2,create Data Collector Set
Under Data Collector sets, select the User defined->new->data Collector Set
2.1 Create Manually
Rename the data Collector Set to datacollectorset_systemactivity and select Create manually (Advanced) and click Next
2.2 Create Data logs
Create Data logs, select Performance counter, click Next
2.3,add Counters
Click Add to add Performance Counters
Sample Interval uses the default value and units of the system presets.
Click Add below Performance Counters
- 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
2.4 Save Location
Set Root dirctory
2.5 Setting the Run as
Run as uses the default value, select Open Properties for the This data Collector Set, click Finish
2.6 Data Collector
After the data Collector set is created, the new data Collector set is displayed under User Defined Catalog.
In right pane, we see a datacollector01,type is performance Counter, because we only select 2.2 logs in step performance Create data Counter, So there is only one data collecotr in the data Collecotr Set, and the type is performance Counter.
3, Data Collector Set properties
3.1 Directory Tab
Set the storage path and naming rules for DataCollector
4, Schedule Data Logging
To set the schedule time in Schedule tab, click Add to set Schedule plan
5,set Stop Condition
The Stop condition is divided into two parts: Overall Duration and Limits,overall Duration have higher precedence.
Note:if an overall duration is configured, it'll override limits.
If you had configured an overall duration, you can select Stop when all data collectors has finished to let all Data collectors finish recording the most recent values before the data Collector Set is stopped.
5.1 Overall Duariton
Overall Duariton is the Overall time that data Collector is continuously running. If you set the ten hours, then data Collector will stop running after 10Hours is run.
5.2 Segment Log files
If the data Log file is too large to exceed 300MB, it is time-consuming to open in Performance Monitor, so you can use the limits option to split the data collection into separate, small Log files. When a data log file reaches limit, a new data log file is created to collect the information, which gives a series of small log files, which can be very fluid when viewing log using Performance Monitor.
Restart The Data Collector set at Limits: Use Limits to segment data collection into separate logs by selecting When a limit is reached, restart the data collector Set .
If both limit types is selected, data collection would 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.
Remarks:larger log files result in longer report generation times. If you review your logs frequently to see recent data, we recommend this you use limits to automatically segment your logs . You can use the relog command to segment long log files or combine multiple short log files. For more information about the relog command, type relog/" and press ENTER at a command prompt.
6,data Management
The log file collected by the data Collector Set is automatically managed, delete or archieve to avoid disk Space exhausted.
6.1 Data Manager Tab
Resource policy is the policy that automatically deletes log files, there are two policy: Delete File size largest and delete file creation date earliest.
Option |
Definition |
Minimum free Disk |
The amount of disk space that must was available on the where log data is stored. If selected, previous data would be deleted according to the Resource policy that you choose when the limit is Rea Ched. |
Maximum folders |
The number of subfolders that can is in the data Collector Set data directory. If selected, previous data would be deleted according to the Resource policy that you choose when the limit is Rea Ched. |
Resource Policy |
Specifies whether to delete the oldest or largest log file or directory when limits is reached. |
Maximum Root Path size |
The maximum size of the data directory for the data Collector Set, including all subfolders. If selected, this maximum path size overrides the Minimum free disk and maximum folders limits, and previous data would be Deleted according to the Resource policy , that's choose when the limit is reached. |
6.2 Actions Tab
The Action Tab is used primarily for data Archive, which allows log file to be dumped into other disk to archive historical data before permanently deleting the log files.
Folder actions allow you to choose what data is archived before it is permanently deleted. Decide to disable the data Manager limits in favor of managing all Data according to these folder action Rules.
Option |
Definition |
Age |
The age in or weeks of the data file. If The value is 0, the criterion are not used. |
Size |
The size in megabytes (MB) of the folder where log data is stored. If The value is 0, the criterion are not used. |
Cab |
A cabinet (. cab) file, which is an archive file format. These files can created from raw log data and extracted later when needed. Choose Create or delete to take action based on the age or size criteria. |
Data |
Raw log data collected by the data Collector Set. Log data can be deleted after a. cab file are created to save disk space while still retaining a backup of the original DAT A. |
Report |
The report file generated by Windows reliability and performance Monitor from raw log data. Report files can is retained even after the raw data or. cab file has been deleted. |
Select Save 7days to delete more than 7days of file.
7,start Data Collector Set
Under User Defined catalog, select data Collector set->start to start data collection, and in right pane, you can see the name and create date of log file.
8,report
Under Reports Catalog, User Defined->datacollectorset_name can see the Name of the log files,
8.1 Data Collector Set is running
By clicking Log file, Data Collector Set will display the report status "collecting data for xxx seconds", as the database collector set is being collected, indicating the status of the data collected and The time that has lasted.
After 8.2 Data Collector Set stops collecting
Click Log file to view the performance log collected by the data Collector Set.
Https://technet.microsoft.com/en-us/library/cc771692.aspx
Performance Monitor Usage8:an Practice