Gradle sonarqube plugin - how to set memory for findbugs? -


i have project module 30k classes. after migrating sonar analysis ant script gradle plugin have oom error output this:

13:10:36 out of memory
13:10:36 total memory: 954m
13:10:36 free memory: 119m

13:10:52 caused by: java.util.concurrent.executionexception: java.lang.outofmemoryerror: gc overhead limit exceeded
13:10:52 @ org.sonar.plugins.findbugs.findbugsexecutor.execute(findbugsexecutor.java:163)
13:10:52 ... 109 more
13:10:52 caused by: java.lang.outofmemoryerror: gc overhead limit exceeded
13:10:52 @

we've run ant script following parameters "-xmx3800m -xx:reservedcodecachesize=128m"

how can set same parameters sonarqube gradle plugin?

i've tried setting following env variable before calling gradle

gradle_opts=-xmx3800m -xx:reservedcodecachesize=128m

it's applied correctly, findbugs still failing , prints "total memory: 954m"

also i've tried adding following properties reduce memory consumption, without luck

property 'sonar.skippackagedesign', 'true' property 'sonar.skipdesign', 'true' 

gradle version 3.5
sonarqube plugin version 2.5
jdk version 8u131

check build.gradle file , set maxheapsize given below,

 tasks.withtype(findbugs) {             maxheapsize = "1000m"         } 

you can change heap size.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -