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 245980

Summary: Memory leak in ClassMemberPanelUI$MyBeanTreeView
Product: editor Reporter: Marek Fukala <mfukala>
Component: CSL (API & infrastructure)Assignee: Milutin Kristofic <mkristofic>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 8.0.1   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description Marek Fukala 2014-07-25 08:01:39 UTC
Please take a look at the following heap dump

http://statistics.netbeans.org/exceptions/exception.do?id=720692

extracted from issue 

https://netbeans.org/bugzilla/show_bug.cgi?id=244697

The ClassMemberPanelUI$MyBeanTreeView (the navigator) holds 262k of items (VisualizerNode) which then holds the ElementScanningTask$RootStructureItem which holds tremendous amount of CSS' and JS' StructureItems. 

This seems to be a bug in the CLS's navigator implementation.

Please evaluate. Thank you.
Comment 1 Milutin Kristofic 2014-08-01 11:35:31 UTC
I remove static functionality from ClassMemberPanelUI$MyBeanTreeView. so the GC can remove it after it is not referenced. 

http://hg.netbeans.org/jet-main/rev/662a636dfc65
Comment 2 Quality Engineering 2014-08-02 05:07:41 UTC
Integrated into 'main-silver', will be available in build *201408020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/662a636dfc65
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #245980 - Memory leak in ClassMemberPanelUI