Unrecognized VM option 'UseConcMarkSweepGC' while trying to install ES 7.13.0

Aug 13 09:16:10 ********* elasticsearch[1120000]: error:
Aug 13 09:16:10 ********* elasticsearch[1120000]: Unrecognized VM option 'UseConcMarkSweepGC'
Aug 13 09:16:10 ********* elasticsearch[1120000]: Error: Could not create the Java Virtual Machine.
Aug 13 09:16:10 ********* elasticsearch[1120000]: Error: A fatal exception has occurred. Program will exit.
Aug 13 09:16:10 ********* elasticsearch[1120000]: at org.elasticsearch.tools.launchers.JvmOption.flagsFinal(JvmOption.java:119)
Aug 13 09:16:10 ********* elasticsearch[1120000]: at org.elasticsearch.tools.launchers.JvmOption.findFinalOptions(JvmOption.java:81)
Aug 13 09:16:10 ********* elasticsearch[1120000]: at org.elasticsearch.tools.launchers.JvmErgonomics.choose(JvmErgonomics.java:38)
Aug 13 09:16:10 ********* elasticsearch[1120000]: at org.elasticsearch.tools.launchers.JvmOptionsParser.jvmOptions(JvmOptionsParser.java:13>
Aug 13 09:16:10 ********* elasticsearch[1120000]: at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:86)
Aug 13 09:16:10 ********* systemd[1]: elasticsearch@node1.service: Main process exited, code=exited, status=1/FAILURE
Aug 13 09:16:24 ********* bash[1127676]: Deleting configurations files

Can you please help me to resolve the error?

My JVM configuration is given below

## GC configuration
8-13:-XX:+UseConcMarkSweepGC
8-13:-XX:CMSInitiatingOccupancyFraction=75
8-13:-XX:+UseCMSInitiatingOccupancyOnly

## G1GC Configuration
# NOTE: G1 GC is only supported on JDK version 10 or later
# to use G1GC, uncomment the next two lines and update the version on the
# following three lines to your version of the JDK
# 10-13:-XX:-UseConcMarkSweepGC
# 10-13:-XX:-UseCMSInitiatingOccupancyOnly
14-:-XX:+UseG1GC
14-:-XX:G1ReservePercent=25
14-:-XX:InitiatingHeapOccupancyPercent=30

Welcome to our community! :smiley:

Are you using the default JVM or did you install another one?
What does your Elasticsearch config look like?

Please also format your code/logs/config using the </> button, or markdown style back ticks. It helps to make things easy to read which helps us help you :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.