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 236805 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-06 12:43 UTC by Accelerate
Modified: 2013-10-07 13:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 195032


Attachments
stacktrace (2.46 KB, text/plain)
2013-10-06 12:43 UTC, Accelerate
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Accelerate 2013-10-06 12:43:19 UTC
Build: NetBeans IDE 7.3.1 (Build 201306052037)
VM: OpenJDK 64-Bit Server VM, 24.0-b56, OpenJDK Runtime Environment, 1.7.0_40-b60
OS: Linux

User Comments:
Accelerate: ????????? ?????? (search result) ????? ??????? 5000 ?????????? (matches). 8Gb RAM.




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOfRange(Arrays.java:2694)
   at java.lang.String.<init>(String.java:203)
   at java.lang.StringBuffer.toString(StringBuffer.java:561)
   at java.text.Format.format(Format.java:157)
   at java.text.MessageFormat.format(MessageFormat.java:836)
   at org.openide.util.NbBundle.getMessage(NbBundle.java:736)
Comment 1 Accelerate 2013-10-06 12:43:21 UTC
Created attachment 140836 [details]
stacktrace
Comment 2 Jaroslav Havlin 2013-10-07 13:40:54 UTC
There is a lot of TextDetail.DetailNode objects in the heap dump,
and each of them precomputes DetailNode.getFullDesc value and stores
it as node property "output line".
It should be sufficient to compute the values on demand.

Fixed in http://hg.netbeans.org/core-main/rev/0a91f9030c8b
Thank you for reporting.