Bitbucket Server fails to start when using Java 11

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

When using Java 11, Bitbucket Server or Data Center does not start. No error is displayed on the console, but the <BitbucketHome>/log/launcher.log file shows the following error:

Unrecognized VM option 'PrintGCTimeStamps'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Note: Instead of PrintGCTimeStamps the name of another Java Virtual Machine (JVM) option may be listed, for instance PrintGCDateStamps.

Diagnosis

Environment

  • Any version of Bitbucket Server started with Java 11.

Cause

One or more of the JVM options configured for Bitbucket Server are no longer supported in Java 11.

Resolution

To resolve this problem you can do one of the following:

  1. Use an older supported version of Java before version 11
  2. Remove the offending JVM options by following these steps:
    1. Open the file <BitbucketInstallation>/bin/_start-webapp.sh
    2. Locate the line starting with JVM_SUPPORT_RECOMMENDED_ARGS - this line lists all the custom JVM options you have configured
    3. From the value of this variable (within the double quotes) remove the offending JVM option(s) - for instance if the offending JVM option listed in the log file is PrintGCDateStamps, remove -DPrintGCDateStamps
    4. Save the file
    5. Start Bitbucket Server
    6. If Bitbucket Server still fails to start, check the <BitbucketHome>/log/launcher.log file again to see if there are more offending JVM options you need to remove.


DescriptionBitbucket Server fails to start when using Ja va 11 if there are JVM options configured that are no longer supported in Java 11
ProductBitbucket Server
Last modified on Sep 6, 2019

Was this helpful?

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