如何用windows自带的工具去监控某一进程对服务器资源的使用情况
通常情况下,我们会用LR去监控服务器的资源从而得到对系统并发时系统的资源使用情况。那么我们又如何使用windows自带的工具去对某一进程实现监控,并取得这一进程对系统的资源使用情况呢,如下:
1. Input the command ‘perfmon’ in the DOS console, then open the ‘Performance monitoring program’
2. Create a new data collector set from ‘Data collector Set->User Defined’
3. Input the name ‘E.g Test’and select the ‘Create manually(Advanced)’, then Click ‘Next’
4. Setting ‘What data do you want to include’ as below,Select the ‘Create data logs’ and select subitem ‘Performance counter’, then click ‘Next’
5. Setting ‘Which performance counter would you like to log?’
5.1. Click ‘Add’ to add the performance counters which is you want to moitor. E.g.
CPU,Memory,Disk, etc.
5.2. Setting the interval (Sample Interval:3, Unit: Seconds), then click ‘Next’.
6. Setting where would you like the data to be saved, then click ‘Next’
7. Select ‘save and close’, then click ‘Next’.
8. Now, you have created the data collector. But you need to set the ‘Log format’ as ‘comma separated’, and then the log will be save as ‘.csv’.
9. When you want to monitor this process, you can start this data collector. the way as below,right click the ‘test’ and click the ‘Start’.
10. After finished the test, you can obtain the log from the below path,right click the ‘test’ then click ‘properties-Directory-Example directory’. You can obtain the results as below,