[Project Analysis] java.lang.OutOfMemoryError: Java heap space

SonarQube : 7.9
sonar-scanner : 4.0.0
sonar.properties :
sonar.web.javaOpts=-Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError
sonar.ce.javaOpts=-Xmx10g -Xms512m -XX:+HeapDumpOnOutOfMemoryError
Window server 2016, 4 cpu, 12287 MB ram

After a successul execution, the project analysis failed with Java heap space.

INFO: Analysis report generated in 8953ms, dir size=696 MB
INFO: Analysis report compressed in 40734ms, zip size=85 MB
INFO: Analysis report uploaded in 3609ms
INFO: ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard?id=LO
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at http://localhost:9000/api/ce/task?id=AXmPiv2kFBkU_PnQKgUb
INFO: Analysis total time: 11:25.716 s
INFO: ------------------------------------------------------------------------
INFO: ------------------------------------------------------------------------
INFO: Total time: 11:27.513s
INFO: Final Memory: 6M/28M
INFO: ------------------------------------------------------------------------

After 4+ mn, the projetct analysis failed :
#### Error Details

java.lang.OutOfMemoryError: Java heap space at java.base/java.util.stream.SortedOps.makeRef(SortedOps.java:63) at java.base/java.util.stream.ReferencePipeline.sorted(ReferencePipeline.java:463)

It’s good now with :
sonar.web.javaOpts=-Xmx10g -Xms128m -XX:+HeapDumpOnOutOfMemoryError

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.