Home All Groups Group Topic Archive Search About

interval when GC is run

Author
27 Sep 2006 5:53 PM
Roger
What is the interval when garbage collection is run and is there a way to
monitor it through Perfmon?

Author
27 Sep 2006 6:30 PM
Michael Nemtsev
Hello Roger,

There is no time interval, GC runs in 3 cases

1)      Allocation exceeds the Gen0 threshold;
2)      System.GC.Collect is called;
3)      System is in low memory situation;

R> What is the interval when garbage collection is run and is there a
R> way to monitor it through Perfmon?
R>
---
WBR,
Michael  Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Author
27 Sep 2006 6:38 PM
Roger
is there a counter in perfmon that can monitor the threshold?

Show quote
"Michael Nemtsev" wrote:

> Hello Roger,
>
> There is no time interval, GC runs in 3 cases
>
> 1)      Allocation exceeds the Gen0 threshold;
> 2)      System.GC.Collect is called;
> 3)      System is in low memory situation;
>
> R> What is the interval when garbage collection is run and is there a
> R> way to monitor it through Perfmon?
> R>
> ---
> WBR,
> Michael  Nemtsev :: blog: http://spaces.live.com/laflour
>
> "At times one remains faithful to a cause only because its opponents do not
> cease to be insipid." (c) Friedrich Nietzsche
>
>
>
Author
27 Sep 2006 6:57 PM
Michael Nemtsev
Hello Roger,

The threshold of GC is not cleary fixed, it depends on CPU cache.
AFAIK there is no perfcounter to monitor this

But, could u explain why do u need to monitor this?


R> is there a counter in perfmon that can monitor the threshold?
R>
Show quote
R> "Michael Nemtsev" wrote:
R>
>> Hello Roger,
>>
>> There is no time interval, GC runs in 3 cases
>>
>> 1)      Allocation exceeds the Gen0 threshold;
>> 2)      System.GC.Collect is called;
>> 3)      System is in low memory situation;
>> R> What is the interval when garbage collection is run and is there a
>> R> way to monitor it through Perfmon?
>> R>
>> ---
>> WBR,
>> Michael  Nemtsev :: blog: http://spaces.live.com/laflour
>> "At times one remains faithful to a cause only because its opponents
>> do not cease to be insipid." (c) Friedrich Nietzsche
>>
---
WBR,
Michael  Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Author
27 Sep 2006 7:15 PM
Roger
Well, I have an asp.net 2.0 app, and I have a a few singleton objects
declared. And for some reason, I can navigate around for awhile and then for
no reason and never in the same place and never the same time, during
development I can thrown out. If I look at the detail info, it is on one of
my objects. Cursious to determine is GC is collecting it or not.

Show quote
"Michael Nemtsev" wrote:

> Hello Roger,
>
> The threshold of GC is not cleary fixed, it depends on CPU cache.
> AFAIK there is no perfcounter to monitor this
>
> But, could u explain why do u need to monitor this?
>
>
> R> is there a counter in perfmon that can monitor the threshold?
> R>
> R> "Michael Nemtsev" wrote:
> R>
> >> Hello Roger,
> >>
> >> There is no time interval, GC runs in 3 cases
> >>
> >> 1)      Allocation exceeds the Gen0 threshold;
> >> 2)      System.GC.Collect is called;
> >> 3)      System is in low memory situation;
> >> R> What is the interval when garbage collection is run and is there a
> >> R> way to monitor it through Perfmon?
> >> R>
> >> ---
> >> WBR,
> >> Michael  Nemtsev :: blog: http://spaces.live.com/laflour
> >> "At times one remains faithful to a cause only because its opponents
> >> do not cease to be insipid." (c) Friedrich Nietzsche
> >>
> ---
> WBR,
> Michael  Nemtsev :: blog: http://spaces.live.com/laflour
>
> "At times one remains faithful to a cause only because its opponents do not
> cease to be insipid." (c) Friedrich Nietzsche
>
>
>
Author
27 Sep 2006 7:50 PM
Michael Nemtsev
Hello Roger,

Try to play with these counters

   .net CLR Memory/# Bytes in all Heaps
   .net CLR Memory/% Time in GC
   .net CLR Memory/Large Object Heap size
   .net CLR Loading/Bytes in Loader Heap
   .net CLR Loading/Current Assemblies

R> Well, I have an asp.net 2.0 app, and I have a a few singleton objects
R> declared. And for some reason, I can navigate around for awhile and
R> then for no reason and never in the same place and never the same
R> time, during development I can thrown out. If I look at the detail
R> info, it is on one of my objects. Cursious to determine is GC is
R> collecting it or not.
R>
Show quote
R> "Michael Nemtsev" wrote:
R>
>> Hello Roger,
>>
>> The threshold of GC is not cleary fixed, it depends on CPU cache.
>> AFAIK there is no perfcounter to monitor this
>>
>> But, could u explain why do u need to monitor this?
>>
>> R> is there a counter in perfmon that can monitor the threshold?
>> R>
>> R> "Michael Nemtsev" wrote:
>> R>
>>>> Hello Roger,
>>>>
>>>> There is no time interval, GC runs in 3 cases
>>>>
>>>> 1)      Allocation exceeds the Gen0 threshold;
>>>> 2)      System.GC.Collect is called;
>>>> 3)      System is in low memory situation;
>>>> R> What is the interval when garbage collection is run and is there
>>>> a
>>>> R> way to monitor it through Perfmon?
>>>> R>
>>>> ---
>>>> WBR,
>>>> Michael  Nemtsev :: blog: http://spaces.live.com/laflour
>>>> "At times one remains faithful to a cause only because its
>>>> opponents
>>>> do not cease to be insipid." (c) Friedrich Nietzsche
>> ---
>> WBR,
>> Michael  Nemtsev :: blog: http://spaces.live.com/laflour
>> "At times one remains faithful to a cause only because its opponents
>> do not cease to be insipid." (c) Friedrich Nietzsche
>>
---
WBR,
Michael  Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Author
27 Sep 2006 7:59 PM
Andrei Varanovich
Hi Roger,

All you need to know about GC -- just check-out Jeffrey Richter's
explanations:

http://msdn.microsoft.com/msdnmag/issues/1100/GCI/default.aspx
http://msdn.microsoft.com/msdnmag/issues/1200/GCI2/default.aspx

Also you can find some information about GC monitoring.

Thank you,
Andrei

Roger wrote:
Show quote
> Well, I have an asp.net 2.0 app, and I have a a few singleton objects
> declared. And for some reason, I can navigate around for awhile and then for
> no reason and never in the same place and never the same time, during
> development I can thrown out. If I look at the detail info, it is on one of
> my objects. Cursious to determine is GC is collecting it or not.
>
> "Michael Nemtsev" wrote:
>
> > Hello Roger,
> >
> > The threshold of GC is not cleary fixed, it depends on CPU cache.
> > AFAIK there is no perfcounter to monitor this
> >
> > But, could u explain why do u need to monitor this?
> >
> >
> > R> is there a counter in perfmon that can monitor the threshold?
> > R>
> > R> "Michael Nemtsev" wrote:
> > R>
> > >> Hello Roger,
> > >>
> > >> There is no time interval, GC runs in 3 cases
> > >>
> > >> 1)      Allocation exceeds the Gen0 threshold;
> > >> 2)      System.GC.Collect is called;
> > >> 3)      System is in low memory situation;
> > >> R> What is the interval when garbage collection is run and is there a
> > >> R> way to monitor it through Perfmon?
> > >> R>
> > >> ---
> > >> WBR,
> > >> Michael  Nemtsev :: blog: http://spaces.live.com/laflour
> > >> "At times one remains faithful to a cause only because its opponents
> > >> do not cease to be insipid." (c) Friedrich Nietzsche
> > >>
> > ---
> > WBR,
> > Michael  Nemtsev :: blog: http://spaces.live.com/laflour
> >
> > "At times one remains faithful to a cause only because its opponents do not
> > cease to be insipid." (c) Friedrich Nietzsche
> >
> >
> >
Author
28 Sep 2006 6:03 AM
Debasish Pramanik
There is tool named CLRProfiler check out

--
Regards,

Debasish Pramanik
Assetlink India.
Phone: +91 20 26119531 (226)

Show quote
"Andrei Varanovich" <dotne***@gmail.com> wrote in message
news:1159387188.889230.175080@b28g2000cwb.googlegroups.com...
> Hi Roger,
>
> All you need to know about GC -- just check-out Jeffrey Richter's
> explanations:
>
> http://msdn.microsoft.com/msdnmag/issues/1100/GCI/default.aspx
> http://msdn.microsoft.com/msdnmag/issues/1200/GCI2/default.aspx
>
> Also you can find some information about GC monitoring.
>
> Thank you,
> Andrei
>
> Roger wrote:
> > Well, I have an asp.net 2.0 app, and I have a a few singleton objects
> > declared. And for some reason, I can navigate around for awhile and then
for
> > no reason and never in the same place and never the same time, during
> > development I can thrown out. If I look at the detail info, it is on one
of
> > my objects. Cursious to determine is GC is collecting it or not.
> >
> > "Michael Nemtsev" wrote:
> >
> > > Hello Roger,
> > >
> > > The threshold of GC is not cleary fixed, it depends on CPU cache.
> > > AFAIK there is no perfcounter to monitor this
> > >
> > > But, could u explain why do u need to monitor this?
> > >
> > >
> > > R> is there a counter in perfmon that can monitor the threshold?
> > > R>
> > > R> "Michael Nemtsev" wrote:
> > > R>
> > > >> Hello Roger,
> > > >>
> > > >> There is no time interval, GC runs in 3 cases
> > > >>
> > > >> 1)      Allocation exceeds the Gen0 threshold;
> > > >> 2)      System.GC.Collect is called;
> > > >> 3)      System is in low memory situation;
> > > >> R> What is the interval when garbage collection is run and is there
a
> > > >> R> way to monitor it through Perfmon?
> > > >> R>
> > > >> ---
> > > >> WBR,
> > > >> Michael  Nemtsev :: blog: http://spaces.live.com/laflour
> > > >> "At times one remains faithful to a cause only because its
opponents
> > > >> do not cease to be insipid." (c) Friedrich Nietzsche
> > > >>
> > > ---
> > > WBR,
> > > Michael  Nemtsev :: blog: http://spaces.live.com/laflour
> > >
> > > "At times one remains faithful to a cause only because its opponents
do not
> > > cease to be insipid." (c) Friedrich Nietzsche
> > >
> > >
> > >
>

AddThis Social Bookmark Button