title: Sonar - OutOfMemoryError: Java heap space
body: <p>I am deploying a large Java project on Sonar using "Findbugs" as profile and getting the error below:</p>
  
  <pre><code>Caused by: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError:
  Java heap space
  </code></pre>
  
  <p>What i have tried to resolve this:</p>
  
  <ol>
  <li>Replaced %SONAR_RUNNER_OPTS% with -Xms256m -Xmx1024m to increase the heap size in sonar-runner bat file.</li>
  <li>Put "sonar.findbugs.effort" parameter as "Min" in Sonar global parameters.</li>
  </ol>
  
  <p>But both of above methods didn't work for me.</p>