We are using Sonarqube - Community Edition Version 7.9.4 in Docker container
And we have Jenkins and SonarQube-Scanner-22.214.171.1244 (both) inside another container
Everything is working as expected and it is scanning all the projects, but suddenly for one project it it throwing an error “java.lang.outofmemoryerror gc overhead limit exceeded sonarqube”.
I have already set the sonar.properties as - “sonar.web.javaOpts=-Xmx1024m -Xms512m -XX:+HeapDumpOnOutOfMemoryError”
In our case where do we have to set “SONAR_SCANNER_OPTS” as we have 2 container 1 for sonarqube and other for jenkins + scanner.
In sonar-scanner.properties we have defined - SONAR_SCANNER_OPTS="-Xmx512m"
Can you please suggest us the solution for that
But still getting the same issue