Monday, July 20, 2009

Windows Performance Monitor

Launch the process you want to monitor
Launch Perfmon
Left-hand pane, expand Performance Logs and Alerts, select Counter Logs
Right-click in right-hand pane, select New Log Settings & give it a name
Click Add Counters
Select Performance object: Process
Make your select of counter(s) & instance(s) - your process should be listed as an instance

Hint: Even if I want information on a specific process, I tend to select All counters and All instances, then just filter when I come to review the information

Click Add, then Close
Set your sample interval to suit (default is 1 per 15 seconds)

Click OK (and again if you get prompted that the folder you specified for the log does not exist)

When you want to start monitoring the process, right-click on the counter log and select Start (and later repeat but select Stop when you are ready to stop logging).


When you come to review the data, launch Perfmon and right-click on the graph then select Properties
Go to the Source tab and select Log files, then click Add
Browse to your .BLG file and add it, then click Apply
Select the Data tab and click Add - now you should only see all the processes that were running when you logged the data - find the instance(s) and counter(s) that are interesting and click Add for each, then Close

Click OK and you should see the logged information about the counter(s) selected - the default Y-axis is 0-100 so should work perfectly for percentage counters (for others you can manually the scale of the counter to make it fit, or the scale of the graph itself).


Hint: If you have multiple counters visible, use CTRL-H to highlight the selected one

No comments: