Garbage collection performance test app

G

Guest

Are there any known applications out there used to test the performance of the .NET garbage collector over a long period of time? Basically I need an application that creates objects, uses them, and then throws them away and then monitors the garbage collection and store statistics on it, preferably in C#. I want to know what is the longest period of time that an application may lock up while garbage collection is processing. Thanks!
 
T

Tian Min Huang

Hello,

Thanks for your post. As I understand, you want to get a Garbage Collector
performance test application. Please correct me if there is any
misunderstanding.

Based on my experience and research, there is no application to test the
performance of Garbage Collector.
may lock up while garbage collection is processing.

As you know, the performance of hardware say, CPU speed, RAM access speed,
etc, varies, so that I'm afraid that it's not possible to know the longest
period of time that an application may lock up while garbage collection is
processing.

If you want to monitor the memory usage of an applicaiton, I suggest that
you can use CLR Profiler. The CLR Profiler includes a number of very useful
views of the allocation profile, including a histogram of allocated types,
allocation and call graphs, a time line showing GCs of various generations
and the resulting state of the managed heap after those collections, and a
call tree showing per-method allocations and assembly loads. You can
download CLR Profiler at

http://www.microsoft.com/downloads/details.aspx?FamilyId=86CE6052-D7F4-4AEB-
9B7A-94635BEEBDDA&displaylang=en

For more information on Garbage Collector, I strongly recommend you the
following articles:

Garbage Collector Basics and Performance Hints
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/ht
ml/dotnetgcbasics.asp

Garbage Collection: Automatic Memory Management in the Microsoft .NET
Framework
http://msdn.microsoft.com/msdnmag/issues/1100/GCI/default.aspx

Garbage Collection¡ªPart 2: Automatic Memory Management in the Microsoft
.NET Framework
http://msdn.microsoft.com/msdnmag/issues/1200/GCI2/default.aspx

Please feel free to let me know if you have any problems or concerns.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top