G1 Old Generation GC collection event not sent after Mixed evacuation pause

yu.zhang at oracle.com yu.zhang at oracle.com
Wed Jul 19 15:24:42 UTC 2017


Sundara,

I have filed this bug https://bugs.openjdk.java.net/browse/JDK-8145923

But has not been fixed.

Jenny


On 07/18/2017 10:41 AM, Sundara Mohan M wrote:
> Hi,
>    I am trying to capture all GC event happened on G1 Old Generation.
> I was expecting when G1 Evacuation pause (mixed) happens it should 
> trigger event to my app but instead, i am getting notification only 
> when Full GC happens.
>
> Here is what i am doing
> gcMxBeanListener = myFunction(...)
> oldGen  = ManagementFactiory.getGarbageCollectorMXBeans find { "G1 Old 
> Generation" }
> oldGen.addNotificationListener(gcMxBeanListener, null, null)
>
> But in the case of CMS GC, it is triggered when the concurrent cycle 
> is completed.
>
>
> Is there something i am missing?
>
> Thanks,
> Sundar
>
>
> _______________________________________________
> hotspot-gc-use mailing list
> hotspot-gc-use at openjdk.java.net
> http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20170719/e32efd22/attachment.html>


More information about the hotspot-gc-use mailing list