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.
This issue was reported manually by thurka. It already has 1 duplicates Build: NetBeans IDE 7.4 Beta (Build 201307092200) VM: Java HotSpot(TM) 64-Bit Server VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_17-b02 OS: Windows 7 User Comments: 3rik: Tried to overwrite a large HTML file with lots of internal CSS and JavaScript with another large one. Stacktrace: java.lang.OutOfMemoryError: GC overhead limit exceeded at sun.management.ThreadImpl.dumpThreads0(ThreadImpl.java:0) at sun.management.ThreadImpl.dumpAllThreads(ThreadImpl.java:446) at org.netbeans.modules.sampler.Sampler$1.run(Sampler.java:191) at java.util.TimerThread.mainLoop(TimerThread.java:555) at java.util.TimerThread.run(TimerThread.java:505)
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.