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 247581 - OutOfMemoryError: GC overhead limit exceeded
Summary: OutOfMemoryError: GC overhead limit exceeded
Status: RESOLVED DUPLICATE of bug 251221
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:
Depends on:
Blocks:
 
Reported: 2014-09-30 07:26 UTC by dcosacox
Modified: 2015-09-07 13:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 212328


Attachments
stacktrace (1.33 KB, text/plain)
2014-09-30 07:26 UTC, dcosacox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dcosacox 2014-09-30 07:26:25 UTC
Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.11-b03, Java(TM) SE Runtime Environment, 1.8.0_11-b12
OS: Windows 8.1

User Comments:
dcosacox: The project has to many files, and I think that's the reason for the collapse of the IDE




Stacktrace: 
java.lang.OutOfMemoryError: GC overhead limit exceeded
   at java.util.HashMap.newNode(HashMap.java:1734)
   at java.util.HashMap.putVal(HashMap.java:630)
   at java.util.HashMap.put(HashMap.java:611)
   at java.util.HashSet.add(HashSet.java:219)
   at org.netbeans.spi.debugger.ActionsProviderSupport.setEnabled(ActionsProviderSupport.java:94)
   at org.netbeans.modules.javascript2.debug.breakpoints.ToggleBreakpointActionProvider.propertyChange(ToggleBreakpointActionProvider.java:105)
Comment 1 dcosacox 2014-09-30 07:26:28 UTC
Created attachment 149607 [details]
stacktrace
Comment 2 Martin Entlicher 2014-10-04 02:01:59 UTC
JavaScript editor created a Hashtable on the stack, which has 472 MB retained size. One single ArrayDeque element has that tremendous size.
Comment 3 Martin Entlicher 2014-10-04 02:03:45 UTC
The Hashtable is created here:
at org.netbeans.modules.javascript2.editor.index.JsIndex.getProperties(JsIndex.java:398) 	   Local Variable: java.util.Hashtable#1529 	   Local Variable: java.util.ArrayList#210490 	at org.netbeans.modules.javascript2.editor.index.JsIndex.getProperties(JsIndex.java:337) 	at org.netbeans.modules.javascript2.editor.model.impl.ModelUtils.resolveAssignments(ModelUtils.java:1226) 	at org.netbeans.modules.javascript2.editor.model.impl.ModelUtils.resolveAssignments(ModelUtils.java:1175)
Comment 4 Petr Pisl 2015-09-07 13:15:19 UTC

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