I am running Findbugs with Ant with the <findbugs> task. I am running the Ant build.xml from Jenkins.
My build is stuck on low heap size : Exception in thread "main" java.lang.OutOfMemoryError: Java heap space.
I have read that I need to run Findbugs with -maxHeap n where n is the size (defaults to 256).
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 :
Java Optionsin Jenkins Ant build step where I usually put parameters like-Xmx1024m -Xms512metc…- As a
jvmargsattribute to<findbugs>task inbuild.xmlfile.
I’m not exactly sure how to pass this parameter.
-maxHeap nis a parameter of the findbugs command line wrapper script and can only be used there.To set the heap size from an ant script use the
jvmargsattribute. So your second option should work. For example: