[ 
https://jira.codehaus.org/browse/SUREFIRE-754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=271994#comment-271994
 ] 

Kristian Rosenvold commented on SUREFIRE-754:
---------------------------------------------

The interesting thing about this issue is that is has switched VM in 2.9. In 
previous versions you'd be tweaking argLine on the forked jvm to allocate more 
memory, whereas now the buffer usage is within the surefire plugin itself, 
meaning you have to tweak MAVEN_OPTS to get more memory.

I will try to fix the underlying problem, just figured you'd like to know this 
workaround as of now.

> unbounded memory use when capturing logs
> ----------------------------------------
>
>                 Key: SUREFIRE-754
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-754
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.9
>            Reporter: Andrew Gaul
>             Fix For: 2.10
>
>
> Surefire should dump logs directly to a file instead of buffering in-memory.
> Exception in thread "ThreadedStreamConsumer" java.lang.OutOfMemoryError: Java 
> heap space
>         at java.util.Arrays.copyOf(Arrays.java:2894)
>         at 
> java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:117)
>         at 
> java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:407)
>         at java.lang.StringBuffer.append(StringBuffer.java:241)
>         at 
> org.apache.maven.surefire.report.ConsoleOutputFileReporter.writeMessage(ConsoleOutputFileReporter.java:115)
>         at 
> org.apache.maven.surefire.report.MulticastingReporter.writeMessage(MulticastingReporter.java:101)
>         at 
> org.apache.maven.surefire.report.TestSetRunListener.writeTestOutput(TestSetRunListener.java:99)
>         at 
> org.apache.maven.plugin.surefire.booterclient.output.ForkClient.consumeLine(ForkClient.java:132)
>         at 
> org.apache.maven.plugin.surefire.booterclient.output.ThreadedStreamConsumer$Pumper.run(ThreadedStreamConsumer.java:67)
>         at java.lang.Thread.run(Thread.java:679)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to