Hello All,
We are upgrading Sonarqube from 9.6.1 to 9.9.0 version, after the upgrade was completed, we are unable to start the service. We update the java version to 17, however we still could not start the service. Could someone take a look at this error below.
Thanks
Felix
2023.04.27 20:19:22 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/sonarqube-9.9.0/temp
2023.04.27 20:19:22 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:39103]
2023.04.27 20:19:22 INFO app[o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/sonarqube-9.9.0/elasticsearch]: /opt/sonarqube/sonarqube-9.9.0/elasticsearch/bin/elasticsearch
2023.04.27 20:19:22 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2023.04.27 20:19:41 INFO app[o.s.a.SchedulerImpl] Process[es] is up
2023.04.27 20:19:41 INFO app[o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [/opt/sonarqube/sonarqube-9.9.0]: /opt/sonarqube/jdk-17.0.7/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/sonarqube-9.9.0/temp -XX:-OmitStackTraceInFastThrow --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED -Dcom.redhat.fips=false -Xmx768m -XX:MaxPermSize=160m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-9.9.0.65466.jar:/opt/sonarqube/sonarqube-9.9.0/lib/jdbc/postgresql/postgresql-42.5.1.jar org.sonar.server.app.WebServer /opt/sonarqube/sonarqube-9.9.0/temp/sq-process11421326452225691827properties
Unrecognized VM option ‘MaxPermSize=160m’
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
2023.04.27 20:19:41 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [Web Server]: 1
2023.04.27 20:19:41 INFO app[o.s.a.SchedulerImpl] Process[Web Server] is stopped
2023.04.27 20:19:41 INFO app[o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2023.04.27 20:19:41 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 143
2023.04.27 20:19:41 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped