leakage or no leakage

Memory profiling for .NET developers

Moderators: Luke Jefferson, StephenC, AndrewH, melvyn.harbour, james.billings, Laura Morley, dene.boulton

leakage or no leakage

Postby dizzy » Wed May 30, 2012 2:44 pm

Hi,
i have an app that shows a foot print in task manager of around 150K when it starts. Over the next 10 to 20 mins or so it climbs to about 500K and then drops back down to 250k. this then repeats..it climbs to ~500k and then drops back to 250k.
It doesn't seem like a memory leak since gc seems to be happening occassionally to bring the foot print back down, but i'm trying to undersand what may be going on here to cause the signifant increase over time and why it takes so long for gc to clean up.

After running ant and take some snapshots i see that between snapshots, there is not that much of a difference in size(initial size is about 47.1MB and after the 2nd snapshot, its about 47.8MB). I do see large number of records in gen2 from the get go however (about 47.5mb).

any advice on what may be happening here and how to understand better?
dizzy
 
Posts: 1
Joined: Wed May 30, 2012 2:35 pm

Postby Chris.Allen » Thu May 31, 2012 4:58 pm

All I can recommend is that you go through all our help on the memory profiler and this should point out some candidates for perhaps an overuse of the gc. Maybe you can refactor yor code such that objects don't hang around for any longer than they really need to (avoiding a generational problem). More than that, I really cannot say. We (red gate support) can, if we have enough time, take a look at profile results and analyse but please make sure it contains lots of data (snapshots).
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm


Return to ANTS Memory Profiler 7

Who is online

Users browsing this forum: No registered users and 1 guest