Sonarqube upgrade issues from 7.3 to 7.9 LTS


We have tried to upgrade Sonarqube server from 7.3 to 9.9 LTS version. And it gave me below error and upgrade failed.

As a pre-requisite we have upgrade the Java version to 11. Initially it was Java 8. Please help us with this error and make the upgrade successful.

2019.07.08 14:32:34 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/apps/sonar/sonarqube-7.9/elasticsearch]: /apps/sonar/sonarqube-7.9/elasticsearch/bin/elasticsearch
2019.07.08 14:32:34 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Unrecognized VM option 'UseParNewGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
2019.07.08 14:32:34 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1
2019.07.08 14:32:34 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
2019.07.08 14:32:34 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
FATAL StatusLogger Interrupted before Log4j Providers could be loaded.
        at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireInterruptibly(
        at java.base/java.util.concurrent.locks.ReentrantLock.lockInterruptibly(
        at org.apache.logging.log4j.util.ProviderUtil.lazyInit(
        at org.apache.logging.log4j.util.ProviderUtil.hasProviders(
        at org.apache.logging.log4j.LogManager.<clinit>(
        at org.elasticsearch.common.unit.ByteSizeValue.<clinit>(
        at org.elasticsearch.transport.TransportSettings.<clinit>(
        at org.elasticsearch.client.transport.TransportClient.newPluginService(
        at org.elasticsearch.client.transport.TransportClient.buildTemplate(
        at org.elasticsearch.client.transport.TransportClient.<init>(
        at org.sonar.application.process.EsManagedProcess.checkStatus(
        at org.sonar.application.process.EsManagedProcess.checkOperational(
        at org.sonar.application.process.EsManagedProcess.isOperational(
        at org.sonar.application.process.ManagedProcessHandler.refreshState(
        at org.sonar.application.process.ManagedProcessHandler$
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
<-- Wrapper Stopped



How are you starting SonarQube? I don’t think the startup scripts that are bundled use the JVM option UseParNewGC.

Hi Durate,

Thanks for the quick response.

I am using ./ start to start the server.


I searched our scripts and the options used to launch the 3 processes and can’t find UseParNewGC.

Could it be that you defined additional java options? For example, do you have sonar.web.javaOpts, sonar.ce.javaOpts or defined in conf/

Hello Team,
We are also facing the same issue.
I think this is coming from ElasticSearch JVM initialisation, but I could not find UseParNewGC Options in Elasticsearch/config/jvm.options

Any Help?

Hi Amit,
Could you tell us the exact versions of OS, JRE and SonarQube?

As I mentioned in my previous post, do you have any sonar.{web/ce/search}.javaOpts configured in [sonarqube_home]/conf/

Also, for each process started in SonarQube, the command launching the jvm is printed in [sonarqube_home]/logs/sonar.log. Example:

2019.07.18 12:44:57 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [sonarqube-7.9.1]: C:\Program Files\Java\jdk-11.0.3\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8\temp --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/ --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/common/*;sonarqube-7.9.1\lib\jdbc\postgresql\postgresql-42.2.5.jar sonarqube-7.9.1\temp\sq-process16273308365715655286properties

Could you please post the commands for all 3 processes (ce, web and es)?