Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Build out of memory when publishing junit

I'm running a build on RTC the ant build finishes successfully but then crushes with an out of memory error

BUILD SUCCESSFUL
Total time: 37 minutes 23 seconds
2010-06-13 11:17:25 Invoking post-build participant "com.ibm.team.build.junit.publishing"
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2882)
at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
at java.lang.StringBuffer.append(StringBuffer.java:224)
at com.ibm.team.build.internal.parser.AbstractParserHandlerBase$ElementContext.addCharacterData(AbstractParserHandlerBase.java:697)
at com.ibm.team.build.internal.parser.AbstractParserHandlerBase.characters(AbstractParserHandlerBase.java:175)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.characters(AbstractSAXParser.java:538)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:486)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.ibm.team.build.internal.parser.AbstractParserHandlerBase.parse(AbstractParserHandlerBase.java:141)
at com.ibm.team.build.internal.publishing.JUnitLogPublisher.publishFile(JUnitLogPublisher.java:207)
at com.ibm.team.build.internal.publishing.JUnitLogPublisher.publish(JUnitLogPublisher.java:160)
at com.ibm.team.build.internal.engine.JUnitPublishingPostBuildParticipant.postBuild(JUnitPublishingPostBuildParticipant.java:50)
at com.ibm.team.build.internal.engine.BuildLoop.invokePostBuildParticipants(BuildLoop.java:685)
at com.ibm.team.build.internal.engine.BuildLoop$2.run(BuildLoop.java:471)
at java.lang.Thread.run(Thread.java:619)

0 votes



One answer

Permanent link
Which JDK/JRE are you using to run JBE and Ant? The Sun ones have a fairly low max heap size. Try running with the one included with the RTC client.
See https://jazz.net/wiki/bin/view/Main/BuildFAQ#WhichJDK

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jun 13 '10, 4:24 a.m.

Question was seen: 6,340 times

Last updated: Jun 13 '10, 4:24 a.m.

Confirmation Cancel Confirm