How can I view uncollected memory?

Code profiling for .NET Developers

Moderators: Luke Jefferson, StephenC, Alex.Davies, AndrewH, melvyn.harbour, Laura Morley

How can I view uncollected memory?

Postby RobCrockett » Fri Sep 24, 2010 7:34 pm

I have a service that quickly jumps to 225M. When the GC runs it drops to about 13M and then quickly jumps in size again. When I take a snap shot it collects the garbage and so I cannot see where the problem is.
Rob
RobCrockett
 
Posts: 2
Joined: Fri Sep 24, 2010 7:28 pm

Postby Chris.Allen » Mon Sep 27, 2010 4:01 pm

I don't think the memory profiler tool will help you here.
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm

Postby Chris.Allen » Mon Sep 27, 2010 4:03 pm

You may find this little puppy more helpful:

http://labs.red-gate.com/index.php/Red_ ... ry_Tracker
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm

Postby melvyn.harbour » Mon Sep 27, 2010 5:46 pm

You probably haven't really got a problem at all. Your application, being a service, is running in Server GC mode. If there was contention for your memory, the GC would run, clean things up and then you would push on again.

You need to look and see whether you are actually experiencing any problems, rather than just that number looking large.

Mel
Melvyn Harbour
Project Manager
.NET Tools Division
melvyn.harbour
 
Posts: 27
Joined: Mon Mar 15, 2010 3:27 pm

Found the problem

Postby RobCrockett » Mon Sep 27, 2010 8:52 pm

We were allocating a very large buffer for a file read. It was some test code that got left in the source.

I appreciate all the input.

Rob
Rob
RobCrockett
 
Posts: 2
Joined: Fri Sep 24, 2010 7:28 pm


Return to ANTS Performance Profiler 6

Who is online

Users browsing this forum: No registered users and 0 guests