You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Joep Rottinghuis (JIRA)" <ji...@apache.org> on 2011/06/11 06:21:58 UTC
[jira] [Created] (HADOOP-7381) FindBugs OutOfMemoryError
FindBugs OutOfMemoryError
-------------------------
Key: HADOOP-7381
URL: https://issues.apache.org/jira/browse/HADOOP-7381
Project: Hadoop Common
Issue Type: Bug
Components: build
Affects Versions: 0.20.205.0
Environment: FindBugs 1.3.9, ant 1.8.2, RHEL6, Jenkins 1.414 in Tomcat 7.0.14, Sun Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)
Reporter: Joep Rottinghuis
Assignee: Joep Rottinghuis
Priority: Minor
When running the findbugs target from Jenkins, I get an OutOfMemory error.
The "effort" in FindBugs is set to Max which ends up using a lot of memory to go through all the classes. The jvmargs passed to FindBugs is hardcoded to 512 MB max.
We can leave the default to 512M, as long as we pass this as an ant parameter which can be overwritten in individual cases through -D, or in the build.properties file (either basedir, or user's home directory).
This is the error I get:
findbugs:
[mkdir] Created dir: /.../jenkins/jobs/hadoop-common-test-smoke/workspace/build/test/findbugs
[findbugs] Executing findbugs from ant task
[findbugs] Running FindBugs...
[findbugs] Out of memory
[findbugs] Total memory: 477M
[findbugs] free memory: 62M
[findbugs] Analyzed: /.../jenkins/jobs/hadoop-common-test-smoke/workspace/build/hadoop-core-0.20.security-test-3.jar
...
[findbugs] Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded
[findbugs] at edu.umd.cs.findbugs.OpcodeStack.pushBySignature(OpcodeStack.java:2589)
[findbugs] at edu.umd.cs.findbugs.OpcodeStack.pushByInvoke(OpcodeStack.java:2565)
[findbugs] at edu.umd.cs.findbugs.OpcodeStack.processMethodCall(OpcodeStack.java:2011)
[findbugs] at edu.umd.cs.findbugs.OpcodeStack.sawOpcode(OpcodeStack.java:1574)
...15 more
[findbugs] Java Result: 1
[findbugs] Output saved to /.../jenkins/jobs/hadoop-common-test-smoke/workspace/build/test/findbugs/hadoop-findbugs-report.xml
[xslt] Processing /hadoop01/jenkins/jobs/hadoop-common-test-smoke/workspace/build/test/findbugs/hadoop-findbugs-report.xml to /.../jenkins/jobs/hadoop-common-test-smoke/workspace/build/test/findbugs/hadoop-findbugs-report.html
[xslt] Loading stylesheet /usr/local/findbugs/src/xsl/default.xsl
[xslt] : Error! Premature end of file.
[xslt] : Error! com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Premature end of file.
[xslt] Failed to process /.../jenkins/jobs/hadoop-common-test-smoke/workspace/build/test/findbugs/hadoop-findbugs-report.xml
BUILD FAILED
/.../jenkins/jobs/hadoop-common-test-smoke/workspace/build.xml:1164: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Premature end of file.
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:720)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:313)
at org.apache.tools.ant.taskdefs.optional.TraXLiaison.transform(TraXLiaison.java:194)
at org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:852)
at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:388)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
... 15 more
Caused by: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Premature end of file.
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:547)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:710)
... 20 more
Caused by: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Premature end of file.
at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:446)
at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:234)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:525)
... 21 more
---------
etc.etc.
Total time: 8 minutes 35 seconds
Build step 'Execute shell' marked build as failure
[CHECKSTYLE] Collecting checkstyle analysis files...
CHECKSTYLESuccessfully parsed file /.../jenkins/jobs/hadoop-common-test-smoke/workspace/build/test/checkstyle-errors.xml of module with 13525 warnings.
[FINDBUGS] Skipping publisher since build result is FAILURE
[WARNINGS] Skipping publisher since build result is FAILURE
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira