Nov 7, 2017

JVM option (-XX:MaxMetaspaceSize=) allows you to limit the amount of native memory committed for class metadata.

It is recommended to use it as a safeguard mechanism when facing physical resources (RAM) constraints and other scenarios such as the presence of memory leaks.