Can't start Confluence with "Error: Could not create the Java Virtual Machine"
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
問題
Upon attempting to run Confluence, the application appears to stall or does not properly start on the execution of the start script or service.
The following lines appears in the catalina.out file within the application:
Unrecognized VM option 'UseGCLogFileRotation'Error:
Could not create the Java Virtual Machine.Error:
A fatal exception has occurred. Program will exit.
Unrecognized VM option 'MaxMetaspaceSize=256m'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
The messages is just a few examples, the main catch away part is "Unrecognized VM option"followed by "Error: Could not create the Java Virtual Machine."
診断
環境
- Confluence
Diagnostic Steps
- Check the installed Java version to see if your instance of Confluence uses a supported Java version:
java -version
- Check you Confluence version supported platforms page to see if the java version you are using is supported.
- Check if the java VM options set in setenv file are supported by the version you are using.
- Check that the
JAVA_HOME
environment variable has been set correctly in your environment. See Installing Java for Confluence to check on yourJAVA_HOME
environment variable set in your system
原因
Depending of you Confluence and Java version, you may have unsupported options set in you setenv file.
ソリューション
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.
You may need to remove the Unrecognized VM option from your setenv file. (Prefered)
- You can also add the the VM option "XX:+IgnoreUnrecognizedVMOptions" to your setenv file. (Not Prefered).
- This parameter allows to bypass any bad arguments being passed to Java. Add the parameter at Confluence startup to ensure that Confluence won’t fail to start due to a bad parameter.