Can't start Confluence with "Error: Could not create the Java Virtual Machine"
Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.
Upon attempting to install or run Confluence 5.8.x, the application appears to stall or does not properly start on execution of the start script or service.
The following lines appears in the
catalina.out file within the application:
Unrecognized VM option 'MaxMetaspaceSize=256m' Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
- Confluence 5.8 requires Java 1.8.0_40 and higher in order to start properly
- Check the installed Java version to see if your instance of Confluence uses a supported Java version:
- Check that the
JAVA_HOMEenvironment variable has been set correctly in your environment. See Installing Java for Confluence to check on your
JAVA_HOMEenvironment variable set in your system
As of the release of Confluence 5.8.2, Java 1.7 is no longer supported and Confluence 5.8.x is not compatible with earlier versions of JAVA.
- If you're not using a supported version of Java, you need to update it to a supported Java Version as per mentioned in supported platforms.
- If you haven't installed Java, you need to install it according to the steps in this documentation.