We are running SonarQube from TFS CI task.
Before some time SonarQube analysis was getting success when I trigger build manually but the same build is giving an error and now this is not working from my user with manual trigger also.
[error]ERROR: GC overhead limit exceeded
While Auto trigger as we have configured Nightly scheduled build with the different TFS user.
This is how I configured System variable for SONAR_SCANNER_OPTS
which is working fine with manual trigger
I have checked this document as it seems user permission issue.
User Permissions:
And, according to this TFS User have this access of Build Administrator and Project Administrator to access Variable SONAR_SCANNER_OPTS
I've defined.
Just set a variable in the VSTS build called SONAR_SCANNER_OPTS
with a value of -Xmx8192m
, then try it again.
See Dinesh's comments in this similar issue: GC overhead limit exceeded using the VSTS task
Try to give more memory to the
Run Code Analysis
task rather than thePrepare analysis on SonarQube
task.Also both
sonar.web.javaOpts
andsonar.ce.javaOpts
are server-side options for SonarQube operation. You do not need to worry about those as you are relying on SonarCloud. Setting those for an analysis during a build will have no effect. Just setSONAR_SCANNER_OPTS
which as you saw in your deleted post does have an effect (i.e. setting it to 4096 bytes did lead to an immediate failure of the JVM)