原新浪博客(http://blog.sina.com.cn/billsona)搬迁至此。
文章目录
前言
This document provides a simple instruction of how to configure performance monitor and data collection on windows server.
1. Configuration
1.1 Open Performance Monitor
Opening “Control PanelàAll Control Panel ItemsàAdministrative Tools”, and double click “Performance Monitor”.
1.2 Creating Data Collector Set
In performance monitor window, we’ll get into “Data Collector SetsàUser Defined”. Right clicking “User Defined” and selecting “NewàData Collector Set”.
Inputting a data collector set name and clicking “Next”.
Clicking “Next” by default.
Setting a folder to save the data and click “Next”.
Clicking “Finish” button.
1.3 Creating Data Collector Set
Right clicking the data collector set created in section 2.2. And selecting “NewàData Collector”.
Inputting a data collector name and clicking “Next”.
You can change “Sample Interval” and the units.
And adding the correct performance counters.
Saving the configuration.
Finishing the configuration.
1.4 Setting log Format
Right clicking the collector and selecting “Properties”.
Changing the log format as “Comma Separated” and clicking OK to save the change.
2.Starting and Stopping the Collector
Right clicking the collector set and starting the collector
When the collector is started, the status of the collector has been changed.
We can also right click to stop the collector.
3.Data Analyzing
After collecting the data, we’ll see the data in the folder we set. All data files are csv format. We can analyze the data by excel.
Opening the collected data with excel, we can see all the data collected by the correct interval.
Wee can also generate many charts with this data.
4.System Performance to Be Collected
4.1 Processor
For processor, the most important index is “% Idle Time”, “% User Time” and “% Interrupt Time”. Through “% Idle Time” we can judge if CPU is busy. Through “% User Time” we can analyze the CPU usage of user program corresponding with system program.
4.2 Memory
For memory, the most important index is “Available MBytes”. This can reflect the percentage of memory usage.
Another two important indexes are “Pages Fault/sec” and “Page Read/sec”. The 2 indexes reflect the physical performance of memory.
4.3 Network
For network, the most important indexes are “Bytes Received/sec” and “Bytes Sent/sec”. We can analyze the network interface usage from this.
4.4 Hard Disk
For hard disk, the most important indexes are “% Idle Time”, “Read/Write Bytes/sec” and “Read/Write Queue Length”. These indexes can reflect if the disk is busy.
4.5 Process
For process, we should choose the specific process and add 3 important indexes, “% User Time”, “Handle Count” and “Thread Count”.