My Oracle Support Banner

Is the Size of the Metaspace in GC Logs Being Reported Correctly? (Doc ID 2135835.1)

Last updated on NOVEMBER 08, 2020

Applies to:

Java SE JDK and JRE - Version 8 and later
Information in this document applies to any platform.


If you use the following JVM options:  -XX:MetaspaceSize=384m -XX:MaxMetaspaceSize=384m -XX:+PrintGCDetails;  you should see the size of the metaspace reported in the GC log.

Here's an example entry from a GC log:

Why is the metaspace capacity being reported as ~1.3G when we have the metaspace size configured with a fixed size at 384m?


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.