Full stack trace would me more helpful but I think the problem is that solr tests emit megabytes of data to the console and this has to be buffered and passed to report listeners.
It is possible to spill to disk of course but not a trivial refactoring. An easy workaround for now would be to redirect java logging to a file and keep the console output smaller. There is an issue for those Ooms on github but I admit it isn't of super high priority for me given the workaround above? On Jul 21, 2012 11:05 AM, "Yonik Seeley" <yo...@lucidimagination.com> wrote: > Is there a way we can write to a file instead of buffering test output > in memory? > This has been causing exceptions for me lately. > > [junit4:junit4] Event bus dispatch error: java.lang.OutOfMemoryError: > Java heap space > [junit4:junit4] java.lang.OutOfMemoryError: Java heap space > [junit4:junit4] at java.util.Arrays.copyOf(Arrays.java:2882) > [junit4:junit4] at > > java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) > [junit4:junit4] at > java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:515) > [junit4:junit4] at > java.lang.StringBuffer.append(StringBuffer.java:306) > [junit4:junit4] at java.io.StringWriter.write(StringWriter.java:77) > [junit4:junit4] at > > com.carrotsearch.ant.tasks.junit4.dependencies.org.apache.commons.io.output.WriterOutputStream.flushOutput(WriterOutputStream.java:303) > > -Yonik > http://lucidimagination.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org > For additional commands, e-mail: dev-h...@lucene.apache.org > >