Bitbucket Server fails to start when using Java 11

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: 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 は除く

問題

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.

診断

環境

  • Any version of Bitbucket Server started with Java 11.

原因

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

ソリューション

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.


説明 Bitbucket Server fails to start when using Ja va 11 if there are JVM options configured that are no longer supported in Java 11
製品Bitbucket Server
最終更新日 2019 年 9 月 6 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.