Note that there are some explanatory texts on larger screens.

plurals
  1. POwhere did my memory go? large private bytes count
    primarykey
    data
    text
    <p>I have a WPF app that among other things display a lot of images, large and small. My problem is that the app uses a lot of memory and I cannot figure out where it's coming from.</p> <p>The scenario, when stressing the app some I get this graph in perfmon:</p> <p><a href="http://www.imagechicken.com/uploads/1244548604007097000.jpg" rel="noreferrer">http://www.imagechicken.com/uploads/1244548604007097000.jpg</a></p> <p>The big black line is Process\Private bytes and the other lines are the CLR mem counters (the pink one is Total committed bytes)</p> <p>In numbers in the graph are:<br> Private bytes ~ 350 Mb<br> Committed bytes ~ 100 Mb<br></p> <p>I have been digging around a lot with WinDbg and other tools, and they all report that the managed stack behaves (!eeheap reports total managed stack of around 100 Mb)</p> <p>I've been poking around with apps like LeakDiag,LDGrapher but found nothing.</p> <p>So, finally to my question, <strong>how do I proceed in finding out where my memory is going?</strong></p> <p>Even just starting the app uses 100Mb in committed bytes but 190Mb in private bytes.</p> <p><strong>References:</strong></p> <p>I've read a lot about this, among others on the great sites:<br></p> <p>Tess Ferrandez: <a href="http://blogs.msdn.com/tess/archive/2009/02/27/net-memory-leak-reader-email-are-you-really-leaking-net-memory.aspx" rel="noreferrer">http://blogs.msdn.com/tess/archive/2009/02/27/net-memory-leak-reader-email-are-you-really-leaking-net-memory.aspx</a></p> <p>Rico Mariani: <a href="http://blogs.msdn.com/ricom/archive/2004/12/10/279612.aspx" rel="noreferrer">http://blogs.msdn.com/ricom/archive/2004/12/10/279612.aspx</a></p> <p>MSDN mag: <a href="http://msdn.microsoft.com/en-us/magazine/cc163528.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/magazine/cc163528.aspx</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload