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.
|Summary:||OutOfMemoryError: GC overhead limit exceeded|
|Component:||Painting & Printing||Assignee:||Miloslav Metelka <mmetelka>|
|Severity:||normal||CC:||bb2eb, bdoolittle, BongoBob, dalcris, heriaileen, issues, jyeary, MorPheuZL, rsadkm, sbillard, Seb147, yib|
|Issue Type:||DEFECT||Exception Reporter:||203556|
Description 3rik 2013-09-04 08:25:53 UTC
Comment 2 Tomas Hurka 2013-09-04 08:49:37 UTC
There is a lot of org.netbeans.modules.editor.lib2.highlighting.HighlightItem instances and other instances from org.netbeans.modules.editor.lib2.view package. 34% of the heap is occupied by float, most of which are held from org.netbeans.modules.editor.lib2.view.HighlightsView.
Comment 3 Exceptions Reporter 2013-10-31 17:07:48 UTC
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=203556
Comment 4 Exceptions Reporter 2013-10-31 23:13:58 UTC
Created attachment 141757 [details] stacktrace Locked up when a file that was under Mercurial was reverted by a third-party application.
Comment 5 jyeary 2015-07-04 03:40:31 UTC
Created attachment 154483 [details] stacktrace The JS update is crashing the IDE.
Comment 6 timmaher 2015-08-14 15:22:13 UTC
(In reply to jyeary from comment #5) > Created attachment 154483 [details] > stacktrace > > The JS update is crashing the IDE. Just happened to me to.
Comment 7 Miloslav Metelka 2016-06-15 14:33:26 UTC
Report #819749 shows a large number of HtmlLexer instances and I've found a serious error: HtmlLexer$CompoundState is a non-static inner class. The lexer framework saves a lexer state together with token. There is no reason to hold lexer instances so each relex produces and uses a new lexer instance. However HtmlLexer$CompoundState being non-static holds a HtmlLexer instance together with its input and tokenFactory fields practically for every modification of an html source :( I'll scan all *Lexer classes in all modules to ensure that this pattern was not copied to other lexer impls too. http://hg.netbeans.org/jet-main/rev/9fd14b03efad
Comment 8 Quality Engineering 2016-06-16 01:52:28 UTC
Integrated into 'main-silver', will be available in build *201606160002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/9fd14b03efad User: Miloslav Metelka <firstname.lastname@example.org> Log: #235483 - OutOfMemoryError: GC overhead limit exceeded - fixed HtmlLexer compound state to not be non-static inner class.