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 237247

Summary: OutOfMemoryError: GC overhead limit exceeded
Product: editor Reporter: Exceptions Reporter <exceptions_reporter>
Component: -- Other --Assignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal CC: aikebah, cyberolivier, dig, jhavlin, jmail, mrpc, Tanshaydar, tomacpace, tuen.lee
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 204668
Attachments: stacktrace

Description Exceptions Reporter 2013-10-17 11:13:38 UTC
This issue was reported manually by jhavlin.
It already has 1 duplicates 

Build: NetBeans IDE 7.3 (Build 201302132200)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_15-b03
OS: Windows 8

java.lang.OutOfMemoryError: GC overhead limit exceeded
   at java.util.Arrays.copyOfRange(
   at java.lang.String.<init>(
   at java.lang.String.substring(
   at org.netbeans.modules.masterfs.filebasedfs.utils.FileInfo.getRoot(
Comment 1 Exceptions Reporter 2013-10-17 11:13:40 UTC
Created attachment 141205 [details]
Comment 2 Jaroslav Havlin 2013-10-17 11:18:52 UTC
Many instances of CreateRuleInStylesheet:

  1 567 428 (25%) instances, 332 829 482 (65,4%) bytes retained size

Reassigning to web/HTML Editor. Please evaluate it. Thank you.
Comment 3 Marek Fukala 2014-02-17 13:08:38 UTC

Many o.n.m.html.editor.hints.css.CreateRuleInStylesheet/AddStylesheetLinkHintFix objects held via o.n.m.editor.hints.ParseErrorAnnotation ... 218k of instances, retained size 450M. 

I can possibly slightly decrease the instance sizes, but they are pretty minimal even now so I believe the main problem is just they should not be held the way they are now by the infrastructure.
Comment 4 Marek Fukala 2014-02-17 13:44:54 UTC
*** Bug 241767 has been marked as a duplicate of this bug. ***
Comment 5 mrpc 2016-08-13 06:52:36 UTC
Created attachment 161648 [details]

I was reviewing a git repository history. I clicked on "all revisions". It was my mistake, as I know it had too many revisions.
However, NetBeans should at least give a warning message instead of eating all memory.