Remark time not added to G1 GarbageCollectorMXBeans
Thomas Schatzl
thomas.schatzl at oracle.com
Thu Nov 17 16:34:21 UTC 2022
Hi,
On 16.11.22 11:31, Yude Lin wrote:
> Hi GC team,
>
>
> I noticed the GarbageCollectorMXBeans for G1 do not count the Remark time,
> whereas jstat does include the Remark time in the 'CGCT' field.
>
> And for CMS, the Remark time seems to count towards the
> 'ConcurrentMarkSweep' bean.
>
> This is a little inconsistent IMHO. In particular,
> for applications transitioning from CMS to G1, we will see a sharp decline
> in GC time (through stats monitoring&streaming service that uses GC beans).
> This could be misleading for users, who don't always understand the
> details behind the stats collection.
>
> Should we add the remark as well as cleanup time to a G1 bean?
>
no objections from me. The specification for the beans is unspecific
enough to allow that.
Thomas
More information about the hotspot-gc-dev
mailing list