Must-share information (formatted with Markdown):
- which versions are you using: SonarQube Server
- how is SonarQube deployed: Openshift using DockerImage
- what are you trying to achieve: Upgrading to SonarQube Server 10.8
- what have you tried so far to achieve this: I have built a new image on Openshift based on the SonarQube server 10.8 image.
When I upgrade I get the usual “database migration” page. When I upgrade the database it crashes with Java heap space.
I have the following memory settings in my deployment yaml:
containers:
- resources:
limits:
cpu: '1'
memory: 8Gi
requests:
cpu: 200m
memory: 4Gi
I have tried to add add some parameter SONAR_JAVA_OPTS like this without being able to confirm that the memory is increased:
env:
- name: SONAR_JAVA_OPTS
value: '-Xms6g -Xmx6g'
Checking in the pod I find this from ps aux | grep java:
/opt/java/openjdk/bin/java -jar lib/sonarqube.jar -Dsonar.log.console=true
Which does not indicate that the memory setting has been picked up.
Any help is appreciated.