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
-XX:+Us
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"