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

后端 未结 3 1189
不知归路
不知归路 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:16

    This collectors was deprecated in JDK 9 and removed in JDK 10.

    https://bugs.openjdk.java.net/browse/JDK-8151084

    The new default is the G1 collector and I suggest you see if that suits your needs.

    0 讨论(0)
  • 2021-01-04 01:18

    A follow up to Peter's answer, the flag is

    -XX:+UseG1GC
    

    as described at Oracle

    0 讨论(0)
  • 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"
    
    0 讨论(0)
提交回复
热议问题