title: Increasing maxHeap arg for Findbugs in Jenkins
body: <p>I am running Findbugs with Ant with the <code>&lt;findbugs&gt;</code> task. I am running the Ant <code>build.xml</code> from Jenkins.</p>
  
  <p>My build is stuck on low heap size : <code>Exception in thread "main" java.lang.OutOfMemoryError: Java heap space</code>.</p>
  
  <p>I have <a href="http://findbugs.sourceforge.net/FAQ.html#q3" rel="nofollow">read</a> that I need to run Findbugs with <code>-maxHeap n</code> where <code>n</code> is the size (defaults to 256).</p>
  
  <p>Since I am running Findbugs with Ant and running Ant from Jenkins, I don't really know where to pass this parameter. My options are :</p>
  
  <ol>
  <li><code>Java Options</code> in Jenkins Ant build step where I usually put parameters like <code>-Xmx1024m -Xms512m</code> etc...</li>
  <li>As a <code>jvmargs</code> attribute to <code>&lt;findbugs&gt;</code> task in <code>build.xml</code> file.</li>
  </ol>
  
  <p>I'm not exactly sure how to pass this parameter.</p>