Groups | Blog | Home
all groups > dotnet clr > august 2003 >

dotnet clr : Garbage Collector Debugging


Rob Tillie
8/15/2003 10:28:38 AM
You can do this with a profiler:
http://www.scitech.se/memprofiler/

Greetz,
-- Rob.

[quoted text, click to view]

Rob Tillie
8/15/2003 10:34:27 AM
The one from MS:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cssample/html/vcsamperfmonsamplecsharp.asp

Greetz,
-- Rob.

[quoted text, click to view]

Noah Coad [MVP & MCP]
8/15/2003 11:24:41 AM
WARNING!

I just downloaded, installed, and ran this Memory Profiler and now my system
is under a constant unknown 90% utlization. It is running extremely slow
for no apparent reason (no tasks show the utiliztion under Task Manager
other than "System"). Even after a reboot the system is running at 80% to
90%!

I can barely use my computer and I have a huge contract due this week! This
is very frustrating... Any recommendations?

-Noah Coad
Microsoft MVP & MCP


[quoted text, click to view]

Gustavo Franco
8/15/2003 1:14:28 PM
Hi,



I did a medium complex application in C#, and in some areas the memory goes
up to 60Mb, when I finish I dispose everything and setting everything to
null and calling GC.Collect, but the memory never goes below 45MB and I'm
pretty sure I'm not allocating that huge amount of memory.



Now the question is, are there some kind of tool that allow to me to see
what objects are inside of Garbage Collector?. How do I know if I freed the
resources properly?.



If my application looks like is taking 64Mb of ram al the time the users are
not going to install it.



I need any kind of tool to see the content of the GC.



Supposed I have a bug and the application is taking memory and never is
released how do I supposed to know what is happening if the GC hide this
information?



Any Help?



Thanks.

Eric Gunnerson [MS]
8/15/2003 4:53:36 PM
The runtime has a number of performance counters. If you run "perfmon",
you'll see them. Try ".NET CLR Memory" as the category, and choose something
like "Bytes in all heaps". If you're use taskman to look at memory, it
doesn't necessarily report how much memory you're really using.

--
Eric Gunnerson

Visit the C# product team at http://www.csharp.net
Eric's blog is at http://blogs.gotdotnet.com/ericgu/

This posting is provided "AS IS" with no warranties, and confers no rights.
[quoted text, click to view]

Jack Meyhoff
8/15/2003 7:17:23 PM
I guess you make those MVP & MCP letters look good now huh.

You dont deserve those if you do stupid things like that , havnt u heard of
vmware :D and other tools to contain test apps :D

Even more fool you for doing it on a production machine.

Guess we can remove those little letters that obviously show alot when you
do that.

[quoted text, click to view]

Mark Pearce
8/15/2003 9:01:19 PM
Jack,

You should never express yourself more clearly than you are able to think.

Mark
--
Author of "Comprehensive VB .NET Debugging"
http://www.apress.com/book/bookDisplay.html?bID=128


[quoted text, click to view]
I guess you make those MVP & MCP letters look good now huh.

You dont deserve those if you do stupid things like that , havnt u heard of
vmware :D and other tools to contain test apps :D

Even more fool you for doing it on a production machine.

Guess we can remove those little letters that obviously show alot when you
do that.

[quoted text, click to view]


Shri Borde
8/18/2003 9:20:28 AM
CLR Profiler can show you tons of information about the GC heap. It plugs
into the profiling API hooks and can track the GC heap with a very fine
granularity. It is available as a download on
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/highperfmanagedapps.asp

Plus there's video showing Gregor demoing it:
http://msdn.microsoft.com/msdntv/episode.aspx?xml=episodes/en/20030729CLRGN/manifest.xml

As a general background, Rico's and Jan's articles are helpful:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/dotnetgcbasics.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/fastmanagedcode.asp



[quoted text, click to view]

JerryK
8/18/2003 3:39:20 PM
Is this a windows app? If so, what sort of controls are you using? Are you
using AddEvents?

jerry

[quoted text, click to view]

AddThis Social Bookmark Button