Is the Size of the Metaspace in GC Logs Being Reported Correctly?
Last updated on JULY 04, 2018
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?
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms