How to install minimum version of Metaspace in Java 8

I have a problem that the default size for Metaspace is too small.

Immediately after launching my (Tomcat and Spring) web application, there is a large collection, because Metaspace is exhausted. Prior to Java 8, I could set the initial size of PermGen with -XX:PermSize . Now I am looking for the equivalent of Java 8, but so far I have been out of luck. I am using the G1 garbage collector.

+6
source share
1 answer

To set the metaspace to 100M, use -XX:MetaspaceSize=100M . https://blogs.oracle.com/poonam/entry/about_g1_garbage_collector_permanent

+15
source

Source: https://habr.com/ru/post/972503/


All Articles