Hi,
I'm trying to use latest VisualVM on one of my app that uses JDK21 along with Generational ZGC.
If I use the Generational ZGC flag the max heap size is double than what I specified in the XMX flag.


If I remove Generational flag, max heap size is respected.


Is this a bug in VisualVM or it's a behaviour that I'm not understanding currently?
Thanks
Hi,
I'm trying to use latest VisualVM on one of my app that uses JDK21 along with Generational ZGC.
If I use the Generational ZGC flag the max heap size is double than what I specified in the XMX flag.


If I remove Generational flag, max heap size is respected.


Is this a bug in VisualVM or it's a behaviour that I'm not understanding currently?
Thanks