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 | ||
---|---|---|---|
Product: | editor | Reporter: | 3rik |
Component: | Painting & Printing | Assignee: | Miloslav Metelka <mmetelka> |
Status: | NEW --- | ||
Severity: | normal | CC: | bb2eb, bdoolittle, BongoBob, dalcris, heriaileen, issues, jyeary, MorPheuZL, rsadkm, sbillard, Seb147, yib |
Priority: | P3 | Keywords: | PERFORMANCE |
Version: | 7.4 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 203556 |
Attachments: |
stacktrace
stacktrace stacktrace |
Description
3rik
2013-09-04 08:25:53 UTC
Created attachment 139641 [details]
stacktrace
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. This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=203556 Created attachment 141757 [details]
stacktrace
Locked up when a file that was under Mercurial was reverted by a third-party application.
Created attachment 154483 [details]
stacktrace
The JS update is crashing the IDE.
(In reply to jyeary from comment #5) > Created attachment 154483 [details] > stacktrace > > The JS update is crashing the IDE. Just happened to me to. 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 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 <mmetelka@netbeans.org> Log: #235483 - OutOfMemoryError: GC overhead limit exceeded - fixed HtmlLexer compound state to not be non-static inner class. |