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

heap size

P: n/a
Hi, could anyone help me or point me to a site where to find
information about how to track the heap size and garbage collections
during the execution of an application?

Thanx

Feb 24 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Howdy,

Use performance counter with CategoryName set to ".NET CLR Memory". You can
access gc collector state details including memory usage i.e.:
CounterName=
"# Bytes in all Heaps" or
"Gen 0 heap size" etc.

See MSDN for more details about all .NET CLR Memory performance counters

Hope this helps

Milosz Skalecki
MCP, MCAD
"Exal" wrote:
Hi, could anyone help me or point me to a site where to find
information about how to track the heap size and garbage collections
during the execution of an application?

Thanx

Feb 24 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.