Skip to content

Wrong max heap detected when using Generational ZGC. #518

Description

@sblantipodi

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.
image
image

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

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

Thanks

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions