启动时ElasticSearch 6.3.2无法创建JVM

时间:2018-08-17 09:04:19

标签: elasticsearch

我刚刚从msi包中赢了10台PC,安装了弹性搜索6.3.2。但是,当我尝试在命令行中启动elasticsearch.exe时,却提示了一些与JVM版本有关的问题。

错误消息是:

Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Invalid -Xlog option '-Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m'
[0.003sError: Could not create the Java Virtual Machine.
]Error: A fatal exception has occurred. Program will exit.

[error][logging                  ] [] Error opening log file 'logs/gc.log': No such file or directory

我发现存在类似的问题:https://discuss.elastic.co/t/setting-up-elasticsearch-6-0-1/111280

但是据说弹性6.0+可以支持Java 10(https://www.elastic.co/guide/en/elasticsearch/reference/current/setup.html

我还尝试下载zip安装程序包。在运行elasticsearch.bat时,我也收到了不赞成使用的警告消息,但是引擎已成功启动。

D:\Software\elasticsearch-6.3.2\bin>elasticsearch.bat
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
[2018-08-17T16:55:29,761][INFO ][o.e.n.Node               ] [ZHUZIXIAO-IBM] initializing ...
[2018-08-17T16:55:29,828][INFO ][o.e.e.NodeEnvironment    ] [ZHUZIXIAO-IBM] using [1] data paths, mounts [[Windows (C:)]], net usable_space [8.2gb], net total_space [80gb], types [NTFS]
[2018-08-17T16:55:29,829][INFO ][o.e.e.NodeEnvironment    ] [ZHUZIXIAO-IBM] heap size [1.9gb], compressed ordinary object pointers [true]

对我来说似乎有点尴尬。有人可以帮我解决这个问题吗?

非常感谢!

=======

更新

安装Java 8u181后,ElasticSearch可以正常运行。那么它仍然是版本不兼容的问题吗?

0 个答案:

没有答案