This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 240688 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-20 09:10 UTC by Maksim Khramov
Modified: 2014-02-02 02:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 206750


Attachments
stacktrace (944 bytes, text/plain)
2014-01-20 09:10 UTC, Maksim Khramov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim Khramov 2014-01-20 09:10:04 UTC
Build: NetBeans IDE Dev (Build 201401100002)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b06, Java(TM) SE Runtime Environment, 1.7.0_45-b08
OS: Windows 7

User Comments:
mkhramov: Runned 3 junit tests simultaneously with lot of output from them




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.lang.StringCoding$StringDecoder.decode(StringCoding.java:149)
   at java.lang.StringCoding.decode(StringCoding.java:193)
   at java.lang.StringCoding.decode(StringCoding.java:254)
   at java.lang.String.<init>(String.java:536)
   at java.lang.String.<init>(String.java:556)
   at org.apache.tools.ant.util.LineOrientedOutputStream.processLine(LineOrientedOutputStream.java:107)
Comment 1 Maksim Khramov 2014-01-20 09:10:06 UTC
Created attachment 144137 [details]
stacktrace
Comment 2 Tomas Hurka 2014-01-27 16:21:18 UTC
There is 1,600,000 instances of org.netbeans.modules.gsf.testrunner.api.OutputLine. Most of them are hold by org.netbeans.modules.junit.output.JUnitTestcase#3. Its output instance variable contains ArrayList instance with 1,500,000 instances of OutputLine. Reassiging to java/junit for further evaluation.
Comment 3 Theofanis Oikonomou 2014-01-31 12:09:20 UTC
Changeset: 664e1259433e
Author:    Theofanis Oikonomou <theofanis@netbeans.org>
Date:      2014-01-31 13:06
Message:
Comment 4 Theofanis Oikonomou 2014-01-31 12:19:23 UTC
As the OutputLines objects are stored in order to display a tooltip in the TRW suite/method nodes there is no reason to hold so much data, as at most TestsuiteNode.MAX_TOOLTIP_LINES lines will be displayed in the tooltip. In any case the output is visible both in output window and in the TRW's output pane. Thank you for reporting
Comment 5 Quality Engineering 2014-02-02 02:18:13 UTC
Integrated into 'main-silver', will be available in build *201402020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/664e1259433e
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Task #240688 - OutOfMemoryError: Java heap space