Mert Özen Further With Every Line

Blog

Mert Özen's blog posts on software development, backend, frontend, and DevOps.

Series
3 posts found #garbage-collection
Hunting Memory Leaks: dotnet-gcdump, Heap Snapshot Diffing and Common Leak Patterns
Developer Tools PART 05

Hunting Memory Leaks: dotnet-gcdump, Heap Snapshot Diffing and Common Leak Patterns

A memory leak is found not with a single snapshot but with the difference between two gcdumps taken under the same load and the retention path that holds the growing object from a root. In Bookstore we catch, with dotnet-gcdump, a scoped handler that subscribes to a singleton event and never unsubscribes, taking the heap from 17.8 MB to 348.5 MB in 20,000 requests; we compare gcdump with full dumps, prove the fix with a third snapshot and list common leak patterns.

14 Nov 2026 11 min 2
Allocation and GC Analysis: gc-verbose, Allocation Sampling, the LOH and Server GC/DATAS Settings
Developer Tools PART 04

Allocation and GC Analysis: gc-verbose, Allocation Sampling, the LOH and Server GC/DATAS Settings

A GC problem shows up as frequent gen2s, a high pause share and a growing LOH; the fix is in reducing allocations, not in GC settings. In Bookstore's CSV export we tie 60 MB of allocation per request to stacks with gc-verbose and .NET 10's allocation sampling, cut it to 115 KB with streaming and ArrayPool, compare Server GC, DATAS and Workstation GC under the same load and show how the container limit sets GCHeapHardLimit.

14 Nov 2026 11 min 1
JavaScript Memory Management: Garbage Collection, Memory Leaks and WeakRef
Frontend PART 09

JavaScript Memory Management: Garbage Collection, Memory Leaks and WeakRef

We look at the stack and heap, reachability and garbage collection, then cover leaks from forgotten listeners, timers, closures and detached DOM, plus WeakMap, WeakRef and heap snapshots in DevTools.

3 Nov 2026 10 min 57
Blog Map