Tomcat - Resolve "Unrecongized VM option MaxMetaspaceSize"

by
Jeremy Canfield |
Updated: October 01 2023
| Tomcat articles
"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
Did you find this article helpful?
If so, consider buying me a coffee over at