ANTS Memory Profiler 10

Performance counters are missing

In certain situations, the performance counters may be missing from the performance counter results during a profiler session.

There are many possible causes for the problem, but they all can usually be fixed by rebuilding the performance counter objects.

To rebuild your performance counters:

  • Open a command prompt and run the following commands:

    cd %systemroot%\system32
    lodctr /R

    and then reboot the computer. Other performance counters may exist outside the system32 folder.
    If you need to rebuild the .NET performance counters, locate the file corperfmonsymbols.ini. This should reside in the %systemroot%\\framework\v4.0.30319 directory, but may be in %systemroot%\inf\.netFramework as well. Use lodctr against this file to rebuild the performance counters from a command prompt by running the following commands:

    unlodctr .NetFramework
     cd %systemroot\inf\.netFramework (or the folder containing corperfmonsymbols.ini)
     lodctr corperfmonsymbols.ini

    It is also possible that performance objects are disabled and therefore unavailable to query. 

    The EXCTRLST.exe tool from Microsoft will show you whether or not a particular performance object is enabled and allow you to enable it. This tool can be downloaded for free from Microsoft

    If any of the performance counters are not enabled, they will not appear in the ANTS Memory Profiler performance counter graph.

    On some versions of Windows, performance counters can be disabled globally by setting the registry value HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib to "1".

  • If you're on a newer operating system, please follow the following instructions:

    1. Open a command prompt as Administrator

    2. Enter the following commands:

      cd windows\system32
      LodCtr.exe /S:Backup_Original.INI
      LodCtr.exe /R:PerfStringBackup.INI

(The /S: switch lets you backup the performance counters before you rebuild with the /R: switch.)

Use perfmon to check the counters display correctly.

Didn't find what you were looking for?