Bundled ElasticSearch Windows service fails on switching to use Java 11
プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。
*Fisheye および Crucible は除く
問題
When the bundled Elasticsearch instance is switched to use Java 11 through editing the service's configuration, the service fails to start and the following error is thrown in the System section of the Windows Event Viewer:
The Atlassian Bitbucket Elasticsearch <VERSION> (AtlassianBitbucketElasticsearch) service terminated with the following service-specific error:
The system cannot open the file.原因
The Windows Service is configured to use Java Options that are specific to Java 8. See BSERV-11986 for additional details.
回避策
Remove the following entries from the Java Options section of the Java tab in the Elasticsearch Windows Service configuration window:
-XX:+PrintGCDetails
-XX:+PrintGCDateStamps
-XX:+PrintTenuringDistribution
-XX:+PrintGCApplicationStoppedTime
-Xloggc:<PATH_TO_GC_LOGS>
-XX:+UseGCLogFileRotation
-XX:NumberOfGCLogFiles=32
-XX:GCLogFileSize=64mℹ️ Adding back the following Java options will retain the ability to log GC activity:
-Xlog:safepoint,gc*,gc+age*=trace:file=<PATH_TO_GC_LOGS>:time:filecount=32,filesize=64m
この内容はお役に立ちましたか?