ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 45536] New: JUnit PlainJUnitResultFormatter goes OOM at the end of a run
Date Mon, 04 Aug 2008 14:54:36 GMT

           Summary: JUnit PlainJUnitResultFormatter goes OOM at the end of a
           Product: Ant
           Version: 1.8Alpha (nightly)
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Optional Tasks

This is happening running Hadoop unit tests, presumably because the buffer is
30MB of unicode text

   [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 7.987 sec
    [junit] Exception in thread "Main Thread" java.lang.OutOfMemoryError:
allocLargeObjectOrArray - Object size: 30177672, Num elements: 30177650
    [junit]     at java.util.Arrays.copyOf(
    [junit]     at java.lang.StringCoding.safeTrim(
    [junit]     at java.lang.StringCoding.access$300(
    [junit]     at
    [junit]     at java.lang.StringCoding.encode(
    [junit]     at
    [junit]     at java.lang.String.getBytes(
    [junit]     at
    [junit]     at
    [junit]     at
    [junit]     at
    [junit]     at
    [junit] Running org.apache.hadoop.mapred.TestKeyValueTextInputFormat
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    [junit] Test org.apache.hadoop.mapred.TestKeyValueTextInputFormat FAILED

Seems to me we could write this data straight out to the file, instead of
routing via a StringBuffer.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message