ZGC Allocation stall metrics via MXBean

Connaughton, Niall conniall at amazon.com
Thu Oct 24 04:08:40 UTC 2019

I was going to ask the same question.

In addition - is there any documentation on how the allocation stalls work? I'm looking to understand things like whether the stall happens to any thread that attempts to allocate a new object, or only threads that need a new TLAB, or some other mechanism. Put another way - if we do something like jHiccup and have a thread constantly sleeping and allocating a small amount, would it detect allocation stalls? Or would it not be stalled until it exhausts its TLAB?


On 10/22/19, 11:19, "zgc-dev on behalf of Sundara Mohan M" <zgc-dev-bounces at openjdk.java.net on behalf of m.sundar85 at gmail.com> wrote:

        I was trying to get GC metrics via GarbageCollectorMXBean but only see
    CollectionCount and CollectionTime.
    Even though i can get the Allocation Stall event from gc log i have to do
    some special setup to get that collected and reported properly.
    Since ZGC allocation stall is important event to identify if the
    application is having issue, can we expose it via any other MXBean?

More information about the zgc-dev mailing list