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 253771 - OutOfMemoryError: GC overhead limit exceeded
Summary: OutOfMemoryError: GC overhead limit exceeded
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
: 242146 247602 248483 249067 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-07-25 01:50 UTC by Petah
Modified: 2015-09-09 12:42 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 212374


Attachments
stacktrace (2.74 KB, text/plain)
2015-07-25 01:50 UTC, Petah
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petah 2015-07-25 01:50:48 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b15
OS: Windows 8

User Comments:
GUEST: opened a gruntfile then it went wrong

GUEST: Opening Netbeans

petah: NB is a hog

GUEST: Just work with 15-20 opened files.




Stacktrace: 
java.lang.OutOfMemoryError: GC overhead limit exceeded
   at java.util.Arrays.copyOfRange(Arrays.java:3664)
   at java.lang.String.<init>(String.java:201)
   at java.lang.String.substring(String.java:1957)
   at java.net.URI$Parser.substring(URI.java:2869)
   at java.net.URI$Parser.parseHierarchical(URI.java:3106)
   at java.net.URI$Parser.parse(URI.java:3053)
Comment 1 Petah 2015-07-25 01:50:51 UTC
Created attachment 154876 [details]
stacktrace
Comment 2 Petr Pisl 2015-09-02 13:10:57 UTC
All 4 reports shows, that there are loaded many Lucene fields from index. I have already did small fixes in NB 8.1 code.
Comment 3 Petr Pisl 2015-09-02 18:53:58 UTC
Marking as fixed. I rewrote algorithm, how are stored assignments. So far there were stored every type from assignments. So for example this fragment of switch:

      case 'OP': key.name = 'f1'; break;
      case 'OQ': key.name = 'f2'; break;
      case 'OR': key.name = 'f3'; break;
      case 'OS': key.name = 'f4'; break;
      case '[11~': key.name = 'f1'; break;
      case '[12~': key.name = 'f2'; break;
      case '[13~': key.name = 'f3'; break;
      case '[14~': key.name = 'f4'; break;

produced 11 assignments of String. In the model we need just the offset of the first assignment, so after the rewrite there is only one assignment with the min offset. This should help in the cases, which are reported.
Comment 4 Quality Engineering 2015-09-03 01:24:48 UTC
Integrated into 'main-silver', will be available in build *201509030002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/356b0b6780f1
User: Petr Pisl <ppisl@netbeans.org>
Log: #253771 - OutOfMemoryError: GC overhead limit exceeded
Comment 5 Petr Pisl 2015-09-07 07:59:12 UTC
*** Bug 249067 has been marked as a duplicate of this bug. ***
Comment 6 Petr Pisl 2015-09-07 10:31:18 UTC
*** Bug 248483 has been marked as a duplicate of this bug. ***
Comment 7 Petr Pisl 2015-09-08 13:30:41 UTC
*** Bug 242146 has been marked as a duplicate of this bug. ***
Comment 8 Petr Pisl 2015-09-09 12:42:42 UTC
*** Bug 247602 has been marked as a duplicate of this bug. ***