Unrecognized VM option 'UseParNewGC' , Error: Could not create the Java Virtual Machine

后端 未结 3 1192
不知归路
不知归路 2021-01-04 00:58

I am trying to start a server using jre 10.0.1 64 bit. There is an obvious change in the settings for the JVM in windows start batch files. With the setting of -XX:+Us

3条回答
  •  北荒
    北荒 (楼主)
    2021-01-04 01:21

    I was getting the same error in elasticsearch. So the best way to resolve it is.

    Run

    sudo nano /usr/share/elasticsearch/bin/elasticsearch.in.sh
    

    and comment out that VM arg

    #ES_GC_OPTS="$ES_GC_OPTS -XX:+UseParNewGC"
    

提交回复
热议问题