No More Memory Fragmentation on the .NET Large Object Heap

There are two different “types” of heaps in .NET. The Small Object Heap (SOH) and the Large Object Heap (LOH). One of the key differences between the heaps is that the SOH compacts memory and hence reduces the chance of memory fragmentation dramatically while the LOH does not employ compaction. As a result, excessive usage…

4

More Efficiently Debug the Managed Heap Using SOS 4.5

More often than not, when we investigate the managed heap using SOS we use the all powerful !DumpHeap command. It’s an incredibly useful command to get in depth detail on what currently resides on the heap. Let’s look at an example of the abbreviated output from !DumpHeap -stat:         MT    Count    TotalSize Class Name … ……

1