I have the problem, that the default Metaspace size is too small.
Right after the startup of my (Tomcat and Spring based) web application, there is a major collection, because the Metaspace is exhausted. Before Java 8, I could set the initial PermGen size with -XX:PermSize
. Now, I'm searching for a Java 8 equivalent for that, but I had no luck so far. I'm using the G1 garbage collector.
To set the meta space to 100M, use -XX:MetaspaceSize=100M
.
https://blogs.oracle.com/poonam/entry/about_g1_garbage_collector_permanent
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With