By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,301 Members | 1,741 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,301 IT Pros & Developers. It's quick & easy.

Garbage collection performance test app

P: n/a
Bob
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!
Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.
I want to know what is the longest period of time that an application

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/d...052-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/de...us/dndotnet/ht
ml/dotnetgcbasics.asp

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

Garbage Collection°™Part 2: Automatic Memory Management in the Microsoft
.NET Framework
http://msdn.microsoft.com/msdnmag/is...2/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.

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.