通过brew升级的eleastic搜索-现在不会以无法识别的vm选项“UseConMarkSweepGC”错误开始

swvgeqrz  于 2021-07-13  发布在  ElasticSearch
关注(0)|答案(1)|浏览(446)

正在对es进行故障排除,我想尝试升级到7.10.2:

Dans-MacBook-Pro:~ aximus$ brew services restart elasticsearch
Stopping `elasticsearch`... (might take a while)
==> Successfully stopped `elasticsearch` (label: homebrew.mxcl.elasticsearch)
==> Successfully started `elasticsearch` (label: homebrew.mxcl.elasticsearch)

启动失败:

Dans-MacBook-Pro:~ aximus$ tail -f /usr/local/var/log/elasticsearch.log

    error:
    Unrecognized VM option 'UseConcMarkSweepGC'
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.
        at org.elasticsearch.tools.launchers.JvmErgonomics.flagsFinal(JvmErgonomics.java:126)
        at org.elasticsearch.tools.launchers.JvmErgonomics.finalJvmOptions(JvmErgonomics.java:88)
        at org.elasticsearch.tools.launchers.JvmErgonomics.choose(JvmErgonomics.java:59)
        at org.elasticsearch.tools.launchers.JvmOptionsParser.jvmOptions(JvmOptionsParser.java:137)
        at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:95)

我已尝试重新安装和链接openjdk@11 (11.0.10)没有成功。目前死在水中:

Dans-MacBook-Pro:~ aximus$ curl 127.0.0.1:9200
curl: (7) Failed to connect to 127.0.0.1 port 9200: Connection refused
eit6fx6z

eit6fx6z1#

偶然发现一个相关的问题,并意识到这是在我的 /usr/local/etc/elasticsearch/jvm.options 文件:


## GC configuration

# -XX:+UseConcMarkSweepGC

# -XX:CMSInitiatingOccupancyFraction=75

# -XX:+UseCMSInitiatingOccupancyOnly

把这些评论出来,现在都好了?

相关问题