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 145383 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED DUPLICATE of bug 129557
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marian Petras
URL: http://statistics.netbeans.org/except...
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2008-08-28 07:42 UTC by Jiri Rechtacek
Modified: 2008-08-28 10:19 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 100551


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Rechtacek 2008-08-28 07:42:52 UTC
Build: NetBeans IDE 6.1 (Build 200804211638)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b91
OS: Linux, 2.6.24-21-generic, i386
User comments: 
STACKTRACE: (first 10 lines)
java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOf(Arrays.java:2882)
        at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
        at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:515)
        at java.lang.StringBuffer.append(StringBuffer.java:306)
        at java.io.BufferedReader.readLine(BufferedReader.java:345)
        at java.io.LineNumberReader.readLine(LineNumberReader.java:182)
        at org.netbeans.modules.search.BasicSearchCriteria.checkFileContent(BasicSearchCriteria.java:642)
        at org.netbeans.modules.search.BasicSearchCriteria.matches(BasicSearchCriteria.java:575)
        at org.netbeans.modules.search.SpecialSearchGroup.processSearchObject(SpecialSearchGroup.java:108)
        at org.netbeans.modules.search.SpecialSearchGroup.doSearch(SpecialSearchGroup.java:88)
Comment 1 Marian Petras 2008-08-28 10:19:48 UTC
From the callstack, particularly from its frame java.io.BufferedReader.readLine(BufferedReader.java:345), it is apparent
that the OutOfMemoryError occurred while searching a file with very long lines (thousands characters without CR or LF),
most probably a binary file. Because the searching routine skips files that are known to be binary files, this must have
been an unrecognised file, a large unrecognised file. Such issue was resolved recently - it is issue #129557.

*** This issue has been marked as a duplicate of 129557 ***