Memory profiler fails on large memory snapshot

Memory profiling for .NET developers

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

Memory profiler fails on large memory snapshot

Postby rnbguru » Tue Mar 29, 2011 5:27 pm

I have a wcf service I am trying to watch through ants profiler 7. The service grows rapidly, as I am trying to identify a memory leak. Within two minutes, it grows to two gig of memory. When I then click take a snapshot in ants profiler, the profiler spins with "taking a snapshot this may take a few minutes" for upward of an hour. Unfortunately, I had to kill the process at the hour mark as it was hurting a production level box.

Looking at the machine's cpu/memory usage during the hour of the snapshot, the cpu went from running at 80% while profiling to a flatline of 10% while it was taking the snapshot. What's more, the memory dropped the full two gigs 20 minutes into the snapshot. These two things combined make me believe the profiler stopped taking the snapshot and simply spun after that point.

Do you have any idea what might be causing this?
rnbguru
 
Posts: 4
Joined: Tue Mar 29, 2011 5:22 pm

Postby Brian Donahue » Thu Mar 31, 2011 11:43 am

All I can suggest is there is not enough memory to deal with all of the results data.
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am

Postby rnbguru » Thu Mar 31, 2011 2:19 pm

Do you know how much memory loading the results takes? Is it roughly one to one with the size of the process memory?

Also, would there be a way to then instead, simply dump the screenshot to file bypassing memory, so I could possibly load it on another box where memory might be more readily available to render it all?
rnbguru
 
Posts: 4
Joined: Tue Mar 29, 2011 5:22 pm

Postby Brian Donahue » Thu Mar 31, 2011 4:14 pm

Apparently it has to do with the number of objects being tracked more than anything -- about 50 million seems to get things going slowly. Results woul obviously be better on x64 (profiling a 64-bit app as well, I suppose).
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am


Return to ANTS Memory Profiler 7

Who is online

Users browsing this forum: No registered users and 2 guests