Separating managed heap growth from native memory growth in a .NET process, and the tools for each.
Compare the managed heap with the process memory. dotnet-counters gives gc-heap-size and working-set; if both rise together, it's a managed leak: diff two dotnet-gcdump snapshots and follow gcroot in dotnet-dump. If the working set (or private/committed memory) climbs while the GC heap stays flat, the growth is native: undisposed native handles, unmanaged buffers (NativeMemory, Marshal.AllocHGlobal), a native library, or many thread stacks. In a dump, !eeheap -gc only covers the managed heap; for native use !maddress -summary (address-space breakdown), watch handle and thread counts (/proc/<pid>/fd, Task Manager, !threads), and use native profilers (WinDbg/!heap on Windows, heaptrack or valgrind on Linux). Also watch the effect: rising memory usually shows up as more GC time and higher p99 before the OOM.
Checks they can separate GC heap growth from unmanaged allocations.
Last updated 23 Nov 2026.