Friday, October 17, 2008

Enabling disabled performance counters

Recently I wanted to use Performance Monitor to monitor the memory usage of a program while it was under stress.   However, when I opened up perfmon and attempted to add performance counters this is what I encountered:

snap

It appears that there are no performance counters available.

After a bit of searching I came up with this solution:

  1. Run regedit
  2. Go to this key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib
  3. Set the "Disable Performance Counters" REG_DWORD value to zero.

No comments: