Unrecognized VM option 'UseParNewGC' , Error: Could not create the Java Virtual Machine
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.
A follow up to Peter's answer, the flag is
-XX:+UseG1GC
as described at Oracle
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"