In an application I have the following -verbose:gc
[GC (Metadata GC Threshold) 8530310K->2065630K(31574016K), 0.3831399 secs]
[Full GC (Meta
While there is already an accepted answer, wanted to mention that there is also :
-XX:MaxMetaspaceSize=is the maximum amount of space to be allocated for class metadata (in bytes).where
Also from here,
Garbage collection of the dead classes and classloaders is triggered once the class metadata usage reaches the “MaxMetaspaceSize”.
There is a list of available options in this post.