Bundled ElasticSearch Windows service fails on switching to use Java 11

お困りですか?

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

コミュニティに質問

問題


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
  • (info) 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




最終更新日 2019 年 9 月 30 日

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

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