Out of memory error during sonarqube analysis

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)

  • what are you trying to achieve

  • what have you tried so far to achieve this

  • Enterprise Edition

  • Version 8.2 (build 32929)
    sonar-jacoco-plugin-1.1.0.898.jar
    sonarqube-ant-task-2.6.0.1426.jar
    sonar-scanner-cli-4.0.0.1744.jar

Issue:
getting out of memory issue when running sonar analyis.

following steps taken:
export SONAR_SCANNER_OPTS="-Xmx4092m"

i updated my hardware configuration of this system
32GB RAM
16 CPU

Hi,

Which scanner are you using? You cite two in your post.

Assuming you’re using the vanilla SonarScanner for this analysis, it’s likely that you just haven’t bumped the heap allocation high enough. The best advice is really just to keep increasing the value until it works.

 
:woman_shrugging:
Ann