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 248520 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED DUPLICATE of bug 243337
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-09 12:45 UTC by simonSurAzur
Modified: 2014-11-14 10:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 213294


Attachments
stacktrace (2.56 KB, text/plain)
2014-11-09 12:46 UTC, simonSurAzur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description simonSurAzur 2014-11-09 12:45:58 UTC
Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: Java HotSpot(TM) Client VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Windows Vista

User Comments:
simonSurAzur: I did not see the problem that NetBeans saw




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57)
   at java.nio.ByteBuffer.allocate(ByteBuffer.java:331)
   at org.netbeans.core.output2.FileMapStorage.getReadBuffer(FileMapStorage.java:371)
   at org.netbeans.core.output2.AbstractLines.getCharBuffer(AbstractLines.java:186)
   at org.netbeans.core.output2.AbstractLines.getText(AbstractLines.java:199)
   at org.netbeans.core.output2.OutputDocument.getText(OutputDocument.java:177)
Comment 1 simonSurAzur 2014-11-09 12:46:00 UTC
Created attachment 150371 [details]
stacktrace
Comment 2 Jaroslav Havlin 2014-11-14 10:49:17 UTC
There are 4 million lines in the Output Window. Retained size of LinesImpl object is 110 MB (and heap size limit is quite low: -Xmx409m). This is similar to bug 243337, decreasing the limit on output lines would help.

Please consider increasing the heap size limit, 410 MB is not too much.
See http://wiki.netbeans.org/FaqSettingHeapSize.

Thank you for reporting.

*** This bug has been marked as a duplicate of bug 243337 ***