Article ID: 290639 - Last Review: April 11, 2008 - Revision: 2.1

How to enable heap counters for Sysmon

This article was previously published under Q290639
Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756  (http://support.microsoft.com/kb/322756/ ) How to back up and restore the registry in Windows
Expand all | Collapse all

SUMMARY

The heap performance-monitoring counter is a new feature in Microsoft Windows XP. This feature is included in Microsoft Windows Server 2003, Windows Vista, and Windows Server 2008. Performance Logs and Alerts (Perfmon.exe) can display about 20 heap-related counters. These counters are not enabled by default; you must enable them.

MORE INFORMATION

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.
Additional heap counters:
Total Frees/sec
Committed Bytes
Reserved Bytes
Virtual Bytes
Free Bytes
Free List Length
Avg. alloc rate
Avg. free rate
Uncommitted Ranges Length
Allocs - Frees
Cached Allocs/sec
Cached Frees/sec
Allocs <1K/sec
Frees <1K/sec
Allocs 1-8K/sec
Frees 1-8K/sec
Allocs over 8K/sec
Frees over 8K/sec
Total Allocs/sec
Blocks in Heap Cache
Largest Cache Depth
% Fragmentation
% VAFragmentation

Heap Lock contention
Perfmon.exe displays these counters when the following registry key is set:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PerfProc\Performance
"DisplayHeapPerfObject"=dword:00000001
For the changes to take effect, you need to restart the computer after you modify the registry. Note that only the process heap and the heaps with higher usage are monitored.

APPLIES TO
  • Microsoft Windows XP Professional
  • Microsoft Windows XP Home Edition
  • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
  • Windows Server 2008 Standard
  • Windows Vista Ultimate
Keywords: 
kbhowto KB290639
 

Article Translations