title: Sonar - OutOfMemoryError Java Heap Space while running sonar through jenkins
body: <p>I am using jenkins for making build by using Ant. I am also configuring sonar on this jenkins job via 'Invoke Standalone Sonar Analysis". Everything is going fine till build making process and build successfully created. Now sonar execution is started and after some time i got an error</p>
  
  <p>"Exception in thread "main" org.sonar.batch.bootstrapper.BootstrapException: java.lang.OutOfMemoryError: Java heap space</p>
  
  <p>Build step 'Invoke Standalone Sonar Analysis' marked build as failure
  "...</p>
  
  <p>What all i have done to fix this issue are:</p>
  
  <ol>
  <li><p>Increasing java heap size via</p>
  
  <p>Replaced %SONAR_RUNNER_OPTS% with -Xms256m -Xmx1024m in sonar-runner.bat file of sonar.</p></li>
  <li><p>Modify Sonar_Way quality profile and put only one or two rules active in this so that to avoid rule voilation.</p></li>
  </ol>
  
  <p>then run build but still getting same java heap error. One more thing i would add on this is my project source folder size is around 40mb means its a big project comparatively.</p>
  
  <p>Can anyboby help me out on this??
  What else should i do to get this done.
  Your revert will be appreciable..
  Thanks in Advance..</p>