Jul 11, 2024
loadby sos clr
.dumpheap -stat
to generate a histogram of objects in memory.
leaky data
.dumpheap
output to list instances of an object.dumpheap /d <method_table>
and !gcroot <address>
.leaky data
object and finding its root using !gcroot
shows its retention path.dumpheap
and !gcroot
commands applied to event handlers.!eeheap -gc
to examine memory distribution across generations and large object heaps (LOH).
!finalizequeue
.