Can't start Confluence with "Error: Could not create the Java Virtual Machine"

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the server and data center platforms.

Problem

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.

Diagnosis

Environment

  • Confluence 5.8 requires Java 1.8.0_40 and higher in order to start properly

Diagnostic Steps

  • Check the installed Java version to see if your  instance of Confluence uses a supported Java version:
java -version
  • Check that the JAVA_HOME  environment variable has been set correctly in your environment. See Installing Java for Confluence to check on your  JAVA_HOME  environment variable set in your system

Cause

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.

Resolution

  1. 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.
  2. If you haven't installed Java, you need to install it according to the steps in this documentation.

Last modified on Nov 2, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.