My App crashes with a large amount of "Private Bytes"

Memory profiling for .NET developers

Moderators: StephenC, Alex.Davies, AndrewH, melvyn.harbour, StephenC, Alex.Davies, AndrewH, melvyn.harbour

My App crashes with a large amount of "Private Bytes"

Postby markmacumber » Tue Nov 24, 2009 12:21 am

Hi All,

I am new to memory profiling, and im trying to find out why exactly my application crashes on startup with an OutofMemoryException.

I ran the ANTS profiler and within 15 seconds, I have over 450MB allocated in the "Private Bytes" section of the profiler.

I took 2 snap shots, one before the jump and one after.

In the "Class List" view of my 2nd snapshot, there is nothing that I can see that is using that much space...

On top of the list when I filter by "Live Size" is a Byte[] which is using 925,023 bytes (not very much, only 0.8MB)

In regards to my app, I know Im loading up BitmapImage instances into memory, which could be the cause (most likely actually), but I dont know how to track that down.

How can I find out what is using up SO MUCH space?
markmacumber
 
Posts: 1
Joined: Tue Nov 24, 2009 12:13 am
Location: Melbourne, Australia

Postby StephenC » Wed Nov 25, 2009 11:13 am

This could be due to heap fragmentation.

Please see this post for further info:

http://www.red-gate.com/messageboard/vi ... php?t=9930

Alternatively there may be an unmanaged code issue.

Stephen
StephenC
 
Posts: 306
Joined: Mon Oct 15, 2007 9:18 am
Location: Cambridge


Return to ANTS Memory Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests