Am having VS2005 on W2K3.
The definition of this "Bytes in All Heaps" is the sum of all the
heaps(Gen0+Gen1+Gen2+LOH). I could observe the value of "Bytes in All Heaps"
equals to (Gen1 + Gen2 + LOH) heap size and not including Gen0 heap size. Is
this a known bug or what.
user
Known, but not a bug.
Some counters related to memory management are refreshed/updated only at a
certain times.
For example, Bytes in All Heaps is updated only when GC collects, and
usually this means that
Gen0 (as it should) is gone (at least most of it).
More:
http://blogs.msdn.com/toddca/archive/2006/09/18/bytes-in-all-heaps-private-bytes.aspx
> Am having VS2005 on W2K3.
>
[quoted text clipped - 4 lines]
>
> user
Willy Denoyette [MVP] - 24 Sep 2007 13:35 GMT
> Known, but not a bug.
> Some counters related to memory management are refreshed/updated only at a
> certain times.
> For example, Bytes in All Heaps is updated only when GC collects, and
> usually this means that
> Gen0 (as it should) is gone (at least most of it).
Very true, and those Gen0 objects that aren't gone are now part of Gen1.
Willy.