Resolve "Unrecongized VM option MaxMetaspaceSize" when attempting to restart a Tomcat JVM

Home > Search
  by

"Unrecongized VM option MaxMetaspaceSize" will be in a Tomcat JVMs catalina.out log when the JVM is using the MaxMetaspaceSize argument and version 7 of Java.

JAVA_HOME=/opt/java7
MaxMetaspaceSize=128M

 

This occurs because the MaxMetaspaceSize argument was introduced in version 8 of Java. If your Tomcat JVM must use version 7 of Java, then you will want to use the -XX:MaxPermSize argument instead of the MaxMetaspaceSize argument.

-XX:MaxPermSize=128M

 

If your Tomcat JVM can use version 8 of Java, then you'll want to configure your Tomcat JVM to use version 8 of Java.

JAVA_HOME=/opt/java8

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments