How to set perfmon counters for performance issue troubleshooting

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
PAM Self-Hosted Articles
4 min read
L0 Member
No ratings
For performance issues, on occasion Idira support requires the gathering of performance monitor data through Windows to determine where the performance issue is arising. This can be done via the following method.

Steps

1. Open Performance Monitor
ka3Vy000009EXP8IAO__eid=ka3Vy000009EXP8&feoid=00N2J000009R3kv&refid=0EM2J000002iiYL.png

2. Under data collector sets -> user defined, right click and select new -> data collector set
ka3Vy000009EXP8IAO__eid=ka3Vy000009EXP8&feoid=00N2J000009R3kv&refid=0EM2J000002iiYa.png

3. Give the collector set a name, and select 'create manually'

ka3Vy000009EXP8IAO__eid=ka3Vy000009EXP8&feoid=00N2J000009R3kv&refid=0EM2J000002iiYk.png

4. Select 'performance counter' on the next screen
ka3Vy000009EXP8IAO__eid=ka3Vy000009EXP8&feoid=00N2J000009R3kv&refid=0EM2J000002iiYp.png

5. Select 'add' 
ka3Vy000009EXP8IAO__eid=ka3Vy000009EXP8&feoid=00N2J000009R3kv&refid=0EM2J000002iiZE.png
6. For each counter, select local computer as the computer, and then select the appropriate counter in the list the counter and source. The example below is for the /system/threads counter which has only one source:

ka3Vy000009EXP8IAO__eid=ka3Vy000009EXP8&feoid=00N2J000009R3kv&refid=0EM2J000002iiZT.png

The below example is for /process/handlecount for the PSM service CAPSM:
ka3Vy000009EXP8IAO__eid=ka3Vy000009EXP8&feoid=00N2J000009R3kv&refid=0EM2J000002iiZd.png

7. Once all counters desired have been added, click OK
ka3Vy000009EXP8IAO__eid=ka3Vy000009EXP8&feoid=00N2J000009R3kv&refid=0EM2J000002iiZx.png

In most circumstances the following counters will be required. Idira support will be able to provide guidance on the specific process required, and whether additional counters are needed:

\System\Threads
\Memory\Available Bytes
\Memory\Committed Bytes
\Memory\Pool Nonpaged Bytes
\Memory\Pool Paged Bytes
\Process(_Total)\% Privileged Time
\Process(_Total)\% Processor Time
\Process(_Total)\% User Time
\Processor(_Total)\% Privileged Time
\Processor(_Total)\% Processor Time
\Processor(_Total)\% User Time
\PhysicalDisk(_Total)\% Disk Read Time
\PhysicalDisk(_Total)\% Disk Time
\PhysicalDisk(_Total)\% Disk Write Time
\PhysicalDisk(_Total)\Avg. Disk sec/Read
\PhysicalDisk(_Total)\Avg. Disk sec/Write
\Process(Process1)\Handle Count
\Process(Process1)\Private Bytes
\Process(Process1)\Virtual Bytes
\Process(Process1)\Working Set
 
If additional process requires monitor simply add the following 4 lines:
\Process(Process2)\Handle Count
\Process(Process2)\Private Bytes
\Process(Process2)\Virtual Bytes
\Process(Process2)\Working Set
 
8. Select finish on the next screen
ka3Vy000009EXP8IAO__eid=ka3Vy000009EXP8&feoid=00N2J000009R3kv&refid=0EM2J000002iiaC.png

9. Select 'start' on the new data collector set
ka3Vy000009EXP8IAO__eid=ka3Vy000009EXP8&feoid=00N2J000009R3kv&refid=0EM2J000002iiaM.png

10. The output of the collector set will be shown on the next screen. Most collector sets will need to run for at least 24 hours
ka3Vy000009EXP8IAO__eid=ka3Vy000009EXP8&feoid=00N2J000009R3kv&refid=0EM2J000002iiYl_1.png
Q:

How can I easily set perfmon counters for performance issue troubleshooting?

A:

It is possible to use Microsoft utility called Logman.
The utility is available on all Windows platforms and requires no further actions to set it up.

1. Set the counter using the following command, providing the following settings:
logman create counter <Field1> -f bincirc -max 200 -si 00:00:05 --v -o <Field2> -cf <Field3>
Field1 - stands for the counter name.
For example, when monitoring the Vault one can provide PerfMonVault (this will be used at later stages)
Field2 - stands for the output file name only!
For example, when monitoring the Vault one can provide "C:\PerfMon\PerfMonVaultoutput" and ".blg" will be added as the extension automatically.
Field3 - stands for the configuration file one can use to set a pre-defined list of counters.
For example, when monitoring the Vault one can provide "C:\PerfMon\Server.Config"

2. Start the counter using the following command, providing the following settings:
logman start <Field1>
For example, when monitoring the Vault, run the command "logman start PerfMonVault"

2. After the relevant period of time, stop the counter using the following command, providing the following settings:
logman stop <Field1>
For example, when monitoring the Vault, run the command "logman stop PerfMonVault"

3. If there is no further need in the counter, you can delete it using the following command, providing the following settings:
logman delete <Field1>
For example, when monitoring the Vault, run the command "logman delete PerfMonVault"

Note: when providing full paths - quotes are required to wrap the path.
Note: After each logman command, you can run "logman query" to view all counters, and their status (stop/run)
Note: All configuration files can be found within Inet, Technical Support, !Automatic Support Tool, Automation for PerfMon

Below is an example for such list of counters set in Server.config.
All the counters except for the specific process counters are constant and should be collected for every component (hence, it is possible to simply change the process id from dbmain to the relevant components processes):
\System\Threads
\Memory\Available Bytes
\Memory\Committed Bytes
\Memory\Pool Nonpaged Bytes
\Memory\Pool Paged Bytes
\Process(_Total)\% Privileged Time
\Process(_Total)\% Processor Time
\Process(_Total)\% User Time
\Processor(_Total)\% Privileged Time
\Processor(_Total)\% Processor Time
\Processor(_Total)\% User Time
\PhysicalDisk(_Total)\% Disk Read Time
\PhysicalDisk(_Total)\% Disk Time
\PhysicalDisk(_Total)\% Disk Write Time
\PhysicalDisk(_Total)\Avg. Disk sec/Read
\PhysicalDisk(_Total)\Avg. Disk sec/Write
\Process(Process1)\Handle Count
\Process(Process1)\Private Bytes
\Process(Process1)\Virtual Bytes
\Process(Process1)\Working Set

If additional process requires monitor simply add the following 4 lines:
\Process(Process2)\Handle Count
\Process(Process2)\Private Bytes
\Process(Process2)\Virtual Bytes
\Process(Process2)\Working Set


For further details: http://technet.microsoft.com/en-us/library/bb490956.aspx
Rate this article:
  • 3411 Views
  • 0 comments
  • 0 Likes
Article Dashboard
Version history
Last Updated:
‎11-05-2026 11:58 AM
Updated by: