We are currently running a 9.8 version of Sonar w/ no issues. When upgrading to 9.9, we’ve noticed that even though env variables for increased memory exist, they are not applied to the deployment.
When the SonarQube instance is live, I can verify via the UI (and startup logs) that the Compute Engine receives 512mb max memory, the default amount. My settings are ignored. If I shell into the running pod, I can see the environment variable exists; if I cat /opt/sonarqube/conf/sonar.properties, I can see the file is properly filled out with my desired settings
SONAR_SEARCH_JAVAOPTS work perfectly fine, it’s only SONAR_CE_JAVAOPTS and SONAR_WEB_JAVAOPTS that have issues.
thanks for triggering this discussion and helping us with spotting a bug (we describe it here SQHELM-121).
You’re right, SONAR_CE_JAVAOPTS and SONAR_WEB_JAVAOPTS are overridden at the moment. If you want to set jvm opts, you have to use jvmCeOpts and jvmOpts respectively. This is actually also described in our ArtifactHub docs.
Please let us know if setting those values solves your issue. We will anyways fix this bug in the context of SQHELM-121, and thanks again for reporting