Security analyzer: java.lang.OutOfMemoryError: Java heap space using Microsoft hosted agents after

  • ALM used: Azure DevOps
  • CI system used: Azure DevOps, using Windows, Microsoft hosted agents
  • Scanner command used when applicable: SonarCloudAnalyze@1
  • Languages of the repository: C#
  • Error observed :
2023-10-12T13:53:02.8234462Z ##[error]ERROR: Error during SonarScanner execution
2023-10-12T13:53:02.8235619Z ERROR: Error during SonarScanner execution
2023-10-12T13:53:02.8240918Z ##[error]java.lang.OutOfMemoryError: Java heap space
2023-10-12T13:53:02.8241611Z java.lang.OutOfMemoryError: Java heap space
2023-10-12T13:53:02.8242267Z ##[error]at java.base/java.util.LinkedHashMap$LinkedKeySet.iterator(LinkedHashMap.java:564)
2023-10-12T13:53:02.8243308Z 	at java.base/java.util.LinkedHashMap$LinkedKeySet.iterator(LinkedHashMap.java:564)
2023-10-12T13:53:02.8244061Z ##[error]at java.base/java.util.Spliterators$IteratorSpliterator.estimateSize(Spliterators.java:1865)
2023-10-12T13:53:02.8248544Z 	at java.base/java.util.Spliterators$IteratorSpliterator.estimateSize(Spliterators.java:1865)
2023-10-12T13:53:02.8249274Z ##[error]at java.base/java.util.Spliterator.getExactSizeIfKnown(Spliterator.java:414)
2023-10-12T13:53:02.8250218Z 	at java.base/java.util.Spliterator.getExactSizeIfKnown(Spliterator.java:414)
2023-10-12T13:53:02.8251036Z ##[error]at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:508)
2023-10-12T13:53:02.8251820Z 	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:508)
2023-10-12T13:53:02.8252537Z ##[error]at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
2023-10-12T13:53:02.8253303Z 	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
2023-10-12T13:53:02.8253904Z ##[error]at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
2023-10-12T13:53:02.8254422Z 	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
2023-10-12T13:53:02.8255117Z ##[error]at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
2023-10-12T13:53:02.8255622Z 	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
2023-10-12T13:53:02.8256172Z ##[error]at java.base/java.util.stream.LongPipeline.reduce(LongPipeline.java:498)
2023-10-12T13:53:02.8256655Z 	at java.base/java.util.stream.LongPipeline.reduce(LongPipeline.java:498)
2023-10-12T13:53:02.8257506Z ##[error]at java.base/java.util.stream.LongPipeline.sum(LongPipeline.java:456)
2023-10-12T13:53:02.8258026Z 	at java.base/java.util.stream.LongPipeline.sum(LongPipeline.java:456)
2023-10-12T13:53:02.8258523Z ##[error]at com.sonar.security.F.D.B.L.A(na:534)
2023-10-12T13:53:02.8258945Z 	at com.sonar.security.F.D.B.L.A(na:534)
2023-10-12T13:53:02.8259518Z ##[error]at com.sonar.security.F.D.B.L.<init>(na:2315)
2023-10-12T13:53:02.8260073Z 	at com.sonar.security.F.D.B.L.<init>(na:2315)
2023-10-12T13:53:02.8260568Z ##[error]at com.sonar.security.F.D.B.L.<init>(na:1957)
2023-10-12T13:53:02.8261119Z 	at com.sonar.security.F.D.B.L.<init>(na:1957)
2023-10-12T13:53:02.8261602Z ##[error]at com.sonar.security.F.D.B.K.<init>(na:1042)
2023-10-12T13:53:02.8262169Z 	at com.sonar.security.F.D.B.K.<init>(na:1042)
2023-10-12T13:53:02.8262645Z ##[error]at com.sonar.security.F.D.D.T.C(na:2318)
2023-10-12T13:53:02.8263173Z 	at com.sonar.security.F.D.D.T.C(na:2318)
2023-10-12T13:53:02.8263860Z ##[error]at com.sonar.security.F.D.D.T.A(na:2022)

PS: This error occurred on the 10th of October 2023.

Thank you,
Amine

Hey there.

I will reach out for the full analysis logs.