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 - OutOfMemoryError: GC overhead limit exceeded
Summary: OutOfMemoryError: GC overhead limit exceeded
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
: 241767 (view as bug list)
Depends on:
Reported: 2013-10-17 11:13 UTC by Exceptions Reporter
Modified: 2017-08-29 13:31 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 204668

stacktrace (3.01 KB, text/plain)
2013-10-17 11:13 UTC, Exceptions Reporter
stacktrace (1.45 KB, text/plain)
2016-08-13 06:52 UTC, mrpc

Note You need to log in before you can comment on or make changes to this bug.
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.