Re: How can i detect that garbage is running? by CT

CT
Fri May 07 02:38:17 CDT 2004

Well, there's a lot of garbage out there...<g> No, seriously though, what is
it you want to achieve? When you kick off a .NET application, garbage
collection IS running.

--
Carsten Thomsen
Enterprise Development with VS .NET, UML, and MSF
http://www.apress.com/book/bookDisplay.html?bID=105
"baramee" <bkunnika@hotmail.com> wrote in message
news:%236BoC29MEHA.2064@TK2MSFTNGP12.phx.gbl...
>
>



Re: How can i detect that garbage is running? by anonymous

anonymous
Fri May 07 05:11:02 CDT 2004

If you open up perfmon - the under the .Net CLR memory - add the counters for Gen X collections and select the process you want to monitor

This give you the absolute number of collections at a moment in time for each generation of the heap. GCs are triggered by memory pressure so an app that is not allocating memory will not cause any GCs.

Re: How can i detect that garbage is running? by CT

CT
Fri May 07 05:44:05 CDT 2004

Great feedback. However, my point is that the CLR will administer and
monitor any .NET app started, hence the garbage collector "is running", i.e.
it's invoked when needed.

--
Carsten Thomsen
Enterprise Development with VS .NET, UML, and MSF
http://www.apress.com/book/bookDisplay.html?bID=105
"Niroo (MS)" <anonymous@discussions.microsoft.com> wrote in message
news:8F1DB3BE-9A84-4231-B6D7-E288BA780E55@microsoft.com...
> If you open up perfmon - the under the .Net CLR memory - add the counters
> for Gen X collections and select the process you want to monitor.
>
> This give you the absolute number of collections at a moment in time for
> each generation of the heap. GCs are triggered by memory pressure so an
> app that is not allocating memory will not cause any GCs.