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 8.1 Beta (Build 201508041349) VM: Java HotSpot(TM) 64-Bit Server VM, 25.51-b03, Java(TM) SE Runtime Environment, 1.8.0_51-b16 OS: Linux User Comments: GUEST: Facing the problem regularly Stacktrace: java.lang.OutOfMemoryError: GC overhead limit exceeded at org.netbeans.modules.css.lib.NbParseTreeBuilder.consumeToken(NbParseTreeBuilder.java:228) at org.antlr.runtime.debug.DebugTokenStream.consume(DebugTokenStream.java:62) at org.antlr.runtime.BaseRecognizer.match(BaseRecognizer.java:106) at org.netbeans.modules.css.lib.Css3Parser.mediaExpression(Css3Parser.java:4365) at org.netbeans.modules.css.lib.Css3Parser.mediaQuery(Css3Parser.java:4033) at org.netbeans.modules.css.lib.Css3Parser.mediaQueryList(Css3Parser.java:3650)
Created attachment 155280 [details] stacktrace
CssFileModel$LazyEntry instances hold Snapshots in snapshot and topLevelSnapshot instances. Snapshot in turn holds CssParse instance with all parsed data structures (TokenNode, RuleNode). It looks like CssFileModel$LazyEntry does not need parsing informations. It needs just text and two offsets.
Created attachment 155290 [details] Proposed patch Proposed patch - CssFileModel$LazyEntry does not hold Snapshot instances.
I definitely agree. I was planning same with similar fix in Bug #253306 Thank you fixing it. Btw. you have profiler changes in suggested patch.
Created attachment 155292 [details] Proposed patch
(In reply to Milutin Kristofic from comment #4) > I definitely agree. I was planning same with similar fix in Bug #253306 > Thank you fixing it. > > Btw. you have profiler changes in suggested patch. Sorry, fixed.
*** This bug has been marked as a duplicate of bug 253306 ***