Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
sonarqube-9.4.0.54424
sonar-scanner-4.7.0.2747-linux
-
what are you trying to achieve
Running sonar scanner to scan the Django application. -
what have you tried so far to achieve this.
We installed server and scanner on the same development server with capacity of 4GB Memory, but when I ran scanner I see the result and ‘top’ command shows 30% of memory consumed during scanning but why this has to be failed. Do I need to allocate more memory to JVM? Please advice?
NFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 2:35.014s
INFO: Final Memory: 53M/180M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
java.lang.OutOfMemoryError: Java heap space
at org.sonar.scanner.protocol.output.ScannerReport$SyntaxHighlightingRule$Builder.buildPartial(ScannerReport.java:31401)
at org.sonar.scanner.protocol.output.ScannerReport$SyntaxHighlightingRule$Builder.build(ScannerReport.java:31392)
at org.sonar.scanner.sensor.DefaultSensorStorage.lambda$store$1(DefaultSensorStorage.java:286)
at org.sonar.scanner.sensor.DefaultSensorStorage$$Lambda$1186/0x0000000100970c40.apply(Unknown Source)
Best regards,
~Ram