Dotnet Memory Growth

Find leaks and heap bloat in .NET services and tune the GC for containers. Watches dotnet-counters (gc-heap-size, gen-2-gc-count, loh-size, alloc-rate, working-set) to see which generation grows, takes two dotnet-gcdump files under steady load and diffs them to find the growing type and its root, checks the usual causes (event handlers on long-lived publishers, unbounded static caches, undisposed IDisposable, HttpClient per request, large arrays on the LOH), then sizes with DOTNET_GCHeapHardLimit and picks Workstation or Server and concurrent GC by measurement. Use for "memory keeps growing in our ASP.NET app", "Gen2 collections climb", "OutOfMemory in the container", "LOH fragmentation", "working set far above heap size", "is Server GC right for this pod". Not for blocked threads (dotnet-threadpool-starvation), CPU time (profiling), pod requests and limits (k8s-workloads).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 33fad2e4dc

Frequently asked questions

npx get-skill add greenblacked/dotnet-memory-growth