1

I am using pipeline this pipeline enter image description here

Project size approx(500MB).

I am getting errors during scanning code:

ERROR: Error during SonarScanner execution java.lang.OutOfMemoryError: Java heap space...more

enter image description here

enter image description here

Also, I have set the below config and Also I have tried with more RAM -Xmx2G and more... (sonar.exclusions=/.doc, **/.cls , */.docx, **/.ipch, resources/ , vendors//* , /vendors//* , public/admin/images/** , public/admin/vendor//* , public/admin/var//* , public//* , public/assets//* , public/images/** , public/sales_assets/images/**)

sonar.web.javaOpts=-Xmx1024m -Xms256m -XX:+HeapDumpOnOutOfMemoryError

sonar.ce.javaOpts=-Xmx1024m -Xms512m -XX:+HeapDumpOnOutOfMemoryError

sonar.search.javaOpts=-Xmx512m -Xms512m -XX:MaxDirectMemorySize=256m -XX:+HeapDumpOnOutOfMemoryError

but the same issue.

Also, I have followed many StackOverflow link settings and applied them but still getting the same issue.

seenukarthi
  • 8,241
  • 10
  • 47
  • 68
Paras Nakum
  • 238
  • 2
  • 8

0 Answers0