1

i want to use the performance monitor to monitor resource usage for a specific program.

So i tried adding a counter but i could only find global counters there.

I tried creating a user defined data collector set but same counters.

As i understand it there should be a "process" counter like the one showed here: https://stackoverflow.com/questions/27122749/how-to-log-memory-consumption-of-a-windows-process-with-perfmon

but it is not there... any ideas?

Edit: here is what it looks like: https://i.stack.imgur.com/tzUUI.jpg

2
  • Counters for a specific process won't exist until the program is actually running. Is the program you're trying to monitor already running? Apr 22, 2018 at 2:21
  • yes, but its not the program that is missing. it's the whole process counter ( even if my program isn't running lots of other are)
    – wrong1man
    Apr 22, 2018 at 2:54

2 Answers 2

0

You need to open Performance Monitor, right-click on the graph and select Add Counter.

The following dialog box appears: enter image description here

First, please notice that there is a Process category. (The Stack Overflow question to which you had linked didn't show the category in its screenshot. But mine is showing it. It is at the top of the list in the screenshot and is blue.) You need to expand it and select % Processor Time.

Please be careful: You need the Process category, not Processor and not anything else!

Then, from the bottom pane, you need to select your process.

They are missing

Are your performance counters missing? It is possible to rebuild them using the following:

  1. The HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\009 Registry key, which is large
  2. The perfc009.dat and perfh009.dat files, which go into your system32 folder.

I have collected these from a copy of Windows 10 Version 1709 x64. But anyone else can always collect them from a fresh copy of the appropriate version and edition of Windows 10. Simply, install one on a virtual machine. You don't even need to activate it.

To copy these item to their correct places (Windows Registry and system32 folder), you need to start Windows in safe mode.

1
  • 1
    Hi, thanks for the help, but just for posterity. I have no process category! imgur.com/FbfQMjt
    – wrong1man
    Apr 22, 2018 at 17:39
0

I had same issue on Windows server 2012, and this post helped me to fix it

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .