none
procdump -p (PerfCounter condition) doesn't work RRS feed

  • Question

  • I'm trying to setup a threshold for perf counter value to make a dump using -p option.

    tried these syntax:
    procdump -ma -p "\.NET CLR Memory(devenv_3436)\# Bytes in all Heaps" 500 devenv.exe z:\temp

    procdump -ma -p "\\localhost\.NET CLR Memory(devenv_3436)\# Bytes in all Heaps" 500 devenv.exe z:\temp

    In all cases I'm getting error: "Error querying performance counter ":

    Error querying performance counter "\\localhost\.NET CLR Memory(devenv_3436)\# Bytes in all Heaps":
    Error 0x800007D5 (-2147481643)

    What's wrong?
    Wednesday, March 14, 2018 2:10 AM

All replies

  • I ran into this error. The problem is that when you are doing devenv_3436, the actual counter in perfmon does not show the underscore. It shows the proceses as denenv#1 or denenv#2. We need to enable the following registry key to make sure that Process Name format shows correctly. I was then able to dump it with no problems.

        HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PerfProc\Performance. 
        Add a DWORD ProcessNameFormat     with value of 2


    Tuesday, September 17, 2019 6:24 PM