Sonar Scanner fails for java heap space

We also set SONAR_RUNNER_OPTS=’-Xmx4096m’ as the environment variable still we get the above errors


For future reference, it’s generally far preferable to copy/paste the log text. This one turned out well, but in my experience log screenshots are generally difficult to read and/or work with.

Fortunately, I can read yours. The error message seems to be coming from Java itself.

At a guess, a work around might be to allocate more memory to analysis.