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 237014

Summary: OutOfMemoryError: GC overhead limit exceeded
Product: web Reporter: idrnathan
Component: CSS EditorAssignee: Milutin Kristofic <mkristofic>
Status: STARTED ---    
Severity: normal CC: CougarB, saviorenato, tzezula
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 204511
Attachments: stacktrace

Description idrnathan 2013-10-11 08:19:31 UTC
Build: NetBeans IDE 7.4 RC2 (Build 201309252201)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Windows 8

User Comments:
idrnathan: NetBeans crashed unexpectadley when I was re-maximising the window.




Stacktrace: 
java.lang.OutOfMemoryError: GC overhead limit exceeded
   at java.util.ArrayList.<init>(ArrayList.java:132)
   at java.util.ArrayList.<init>(ArrayList.java:139)
   at org.netbeans.modules.javascript2.editor.index.IndexedElement.getAssignments(IndexedElement.java:230)
   at org.netbeans.modules.javascript2.editor.index.IndexedElement.getAssignments(IndexedElement.java:226)
   at org.netbeans.modules.javascript2.editor.index.IndexedElement.create(IndexedElement.java:192)
   at org.netbeans.modules.javascript2.editor.index.JsIndex.getProperties(JsIndex.java:359)
Comment 1 idrnathan 2013-10-11 08:19:32 UTC
Created attachment 141001 [details]
stacktrace
Comment 2 Petr Pisl 2014-02-03 15:00:34 UTC
The head dump contains many instances of org.netbeans.modules.css.editor.csl.CssNodeElement	8.273087532976813	1,384,929 (8.3%)	55,397,160 (5.6%)

and also there is suspicious the amount of org.netbeans.modules.javascript2.editor.JsStructureScanner$JsSimpleStructureItem	2.727600572300008	456,605 (2.7%)	40,181,240 (4%)
Comment 3 Jaroslav Havlin 2014-04-11 10:50:53 UTC
*** Bug 243373 has been marked as a duplicate of this bug. ***
Comment 4 Jaroslav Havlin 2015-07-30 14:02:21 UTC
*** Bug 253878 has been marked as a duplicate of this bug. ***
Comment 5 Petr Pisl 2015-09-08 13:13:09 UTC
The heapdump-787052 shows problem in Navigator, where 3.5 millions of css structure items is hold. 

The heapdump-791047 contains 3.2 millions of org.netbeans.modules.css.lib.RuleNode due reafactoring preview. 

The heapdump-787785 contains 2.5 millions of org.netbeans.modules.parsing.impl.indexing.FileObjectIndexable. It looks like a big root is indexed. CC'ing Tomas Zezula, if he wants to look at this. 

Other reports doesn't contain heapdump now. Reassigning to the css, duo to two reports.