How to fix Unrecognized VM option 'UseParNewGC'

Hello everyone , i am new to the community. Please share your suggestion to fix the following error while installing sonarqube.

facing error on StartSonar.bat command :

Unrecognized VM option ‘UseParNewGC’
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
<-- Wrapper Stopped

Sonar version:5.6.7
windows 10-64bit
java version : jdk 14.0.2

Hey there.

SonarQube v5.6.7 is extremely old. Why are you trying too install this version instead of the current LTS (v7.9.5) or latest (v8.6) version?

Java 14 was just a dream back in 2016 when SonarQube v5.6 was released :wink: It runs on Java 8 only.

I have now used the 7.9,5 version and i am getting now this error. Any suggestion regarding this:

2021.01.05 23:19:39 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory F:\sonarqube folder\sonarqube-7.9.5\sonarqube-7.9.5\temp
2021.01.05 23:19:39 INFO app[] Elasticsearch listening on /
2021.01.05 23:19:40 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [F:\sonarqube folder\sonarqube-7.9.5\sonarqube-7.9.5\elasticsearch]: C:\Program Files\Java\jdk-14.0.2\bin\java -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -XX:-OmitStackTraceInFastThrow -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true\sonarqube folder\sonarqube-7.9.5\sonarqube-7.9.5\temp -XX:ErrorFile=…/logs/es_hs_err_pid%p.log -Xms512m -Xmx512m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=F:\sonarqube folder\sonarqube-7.9.5\sonarqube-7.9.5\elasticsearch -Des.path.conf=F:\sonarqube folder\sonarqube-7.9.5\sonarqube-7.9.5\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
2021.01.05 23:19:40 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
Java HotSpot™ 64-Bit Server VM warning: Ignoring option UseConcMarkSweepGC; support was removed in 14.0
Java HotSpot™ 64-Bit Server VM warning: Ignoring option CMSInitiatingOccupancyFraction; support was removed in 14.0
Java HotSpot™ 64-Bit Server VM warning: Ignoring option UseCMSInitiatingOccupancyOnly; support was removed in 14.0
2021.01.05 23:19:40 INFO app[o.e.p.PluginsService] no modules loaded
2021.01.05 23:19:40 INFO app[o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2021.01.05 23:19:46 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1
2021.01.05 23:19:46 INFO app[o.s.a.SchedulerImpl] Process[es] is stopped
2021.01.05 23:19:46 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped