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.
dev build from Oct 20 + profiler build 061020, JDk6b98 I opened nbbuild+all projects, did few actions in IDE including opening profiler TC and Attach profiler wizard and then closed everything but all project instances and their associated data are held in memory (cannot get below 120MB of used memory in Java heap). The biggest problem seems to be this rerefence chain - Static reference from org.netbeans.modules.profiler.actions.ProfilingSupport.defaultInstance (from class org.netbeans.modules.profiler.actions.ProfilingSupport) : --> org.netbeans.modules.profiler.actions.ProfilingSupport@0xa8460640 (53 bytes) (field attachProjectsCombo:) --> javax.swing.JComboBox@0xa840d930 (364 bytes) (field accessibleContext:) --> javax.swing.JComboBox$AccessibleJComboBox@0xa7b9e128 (76 bytes) (field previousSelectedAccessible:) --> javax.swing.JList$AccessibleJList$AccessibleJListChild@0xa18d0520 (56 bytes) (field listModel:) --> javax.swing.DefaultComboBoxModel@0xa163f9c0 (20 bytes) (field objects:) --> java.util.Vector@0xa16664b8 (24 bytes) (field elementData:) --> [Ljava.lang.Object;@0xa6af9810 (1288 bytes) (Element 62 of [Ljava.lang.Object;@0xa6af9810:) --> org.netbeans.modules.apisupport.project.NbModuleProject@0xa2d37c10 (36 bytes)
These projects are probably released only if I open attach wizard again (and model gets updated).
No, ProfilingSupport listens to OpenProjects.PROPERTY_OPEN_PROJECTS property change and updates model as soon as it receives this property change.
problem is that javax.swing.JList$AccessibleJList$AccessibleJListChild holds old DefaultComboBoxModel with opened projects. It does not listen to "model" property change and therefor do not reflect model change, when projects are closed. I will try to investigate if this is Swing bug.
Should be fixed in trunk.
rkubacki, could you please verify this issue?