title: How to set the minimum Metaspace in Java 8
body: <p>I have the problem, that the default Metaspace size is too small.</p>
  
  <p>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 <code>-XX:PermSize</code>. 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.</p>