.net-coreruntime-errorruntimedumpcoreclr

No CLR runtime found error after calling dumpheap -stat


enter image description hereERROR: No CLR runtime found. This means that a .NET runtime module or the DAC for the runtime can not be found or downloaded.

Hello when I try to analyze memory dump of a running process:

I run following commands on windows terminal> dotnet-dump analyze C:\Users\Admin\dump_20231108_113908.dmp and dumpheap -stat


Solution

  • I also wanted to analyze the dump of a x86 process.
    Just running the dotnet-dump tool from an x86/32bit CMD didn't resolve the issue for me.

    The issue was, that I have installed (and used) the x64 version of the tool.

    So I uninstalled it first, then downloaded and ran the x86 version of it to create and analyze the dump:
    https://learn.microsoft.com/en-us/dotnet/core/diagnostics/dotnet-dump
    (see "Direct download" section).

    The dumpheap -stat command worked then.