I’m using SonarQube docker image sonarqube:7.9.4-community
and I wish to speed up the analysis which is currently painfully slow, most probably due to the fact the compute engine is getting 512MB only:
2021.02.18 09:00:10 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key='ce', ipcIndex=3, logFilenamePrefix=ce]] from [/opt/sonarqube]: /usr/local/openjdk-11/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/temp --add-opens=java.base/java.util=ALL-UNNAMED -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.proxyHost=10.235.34.235 -Dhttp.proxyPort=3129 -Dhttp.nonProxyHosts=localhost|127.*|[::1] -Dhttps.proxyHost=10.235.34.235 -Dhttps.proxyPort=3129 -cp ./lib/common/*:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.2.5.jar org.sonar.ce.app.CeServer /opt/sonarqube/temp/sq-process9242086418303905412properties
I’m currently providing an environment variable, but it seems being ignored:
environment:
- SONARQUBE_JDBC_URL=jdbc:postgresql://sonar-db:5432/sonar
- SONAR_CE_JAVAOPTS="-Xmx8G -Xms1G"
What am I doing wrong?