How to capture performance counters using the Windows Performance Monitor (PerfMon)
book
Article ID: KB0077945
calendar_today
Updated On:
Products
Versions
Spotfire Server
All
Description
This article describes how to use the Windows built-in Performance Monitor tool to capture performance counters, which can be useful when investigating various performance issues, CPU spikes, high memory usage etc
Environment
Windows
Resolution
Start Performance Monitor:
Open the Windows Start menu and type Performance Monitor, right click on it and click Run as administrator
OR
Using Windows key and R button, bring up Run command and type perfmon, after typing the command, hit Ctrl+Shift+Enter to run it with admin privileges
Now create a data collector set:
On the left side, click Data Collector Sets
In the right panel, right click User Defined > New > Data Collector Set
In the Create new Data Collector Set wizard, enter a desired name for the data collector set (Spotfire in our example)
Select Create manually (Advanced) and then click Next.
Under Create data logs, select Performance counter, and click Next
Select desired performance counters:
Set the sample interval, for example to 5 seconds
Click Add
Select the desired performance counters - in the example below we'll add some basic counters to give us an overview of CPU and memory usage, click OK and then click Next:
Memory: 1. % Committed Bytes in Use, 2.Available Bytes
Processor Information (all instances): 1. %Processor Time, 2. % Processor Utility
Process (all instances): 1. % Processor Time, 2. Private Bytes
Save and run the data collector set:
Browse to the directory where you would like to store the data (or create new folder), and then click Next
In the next window, click Finish
In the left side under Data Collector Sets > User Defined, select the newly created data collector set
In the right panel right-click the performance counter (default name DataCollector01) and click Properties
From Log format,select Comma Separated and then click OK
In the left side under Data Collector Sets > User Defined, again select the custom data collector set, right click on it and click Start. Click Stop in the same manner to shut down collection.
Issue/Introduction
This article describes how to use the Windows built-in Performance Monitor tool to capture performance counters, which can be used to investigate various performance issues