Memory diagnostics — find leaks, high allocations, GC pressure.
dotnet-counters (live):
1dotnet-counters monitor -p <pid> \2 System.Runtime \3 --counters gc-heap-size,gen-0-gc-count,gen-1-gc-count
dotnet-dump (snapshot):
1dotnet-dump collect -p <pid>2dotnet-dump analyze <dumpfile>3> dumpheap -stat4> gcroot <address>
Common issues:
Tips: