Product Version: NetBeans IDE Dev (Build 201210020001)
Java: 1.7.0_06; Java HotSpot(TM) 64-Bit Server VM 23.2-b09
System: Linux version 3.2.0-31-generic running on amd64; UTF-8; en_US (nb)
Steps to reproduce: Open some projects -> open some documents from these projects. -> close these documents -> close the projects -> invoke full gc repeatedly -> take heap dump -> there will be numerous instances of ToolbarWithOverflow$2 and consequently also instances of NbEditorDocuments and others which are held by it.
This is most likely caused by #216175
If heap dump is required, I can provide it
I tried to reproduce but in the created heap dump there were no instances of ToolbarWithOverflow.
I could only spot instances of NbEditorToolBar and also NbEditorDocuments. It does not seem to be a problem with ToolbarWithOverflow.
Could you please also provide your heap dump so I could further investigate? Thank you
You have to look for ToolbarWithOverflow$2 !! there should be same number of ToolbarWithOverflow$2 as ToolbarWithOverflow + all its subclasses the heapdump is at http://netbeans.org/projects/performance/downloads/download/heapdumps/heapdump-219603.hprof.zip
The heap dump is taken from ide with no open documents or projects and is taken after numerous full GCs and waits, so there should be no instances of NbEditorDocument there are 7 and all are held via ToolbarWithOverflow$2. This needs to be fixed ASAP because it also blocks further memory leak testing.
Thank you for the heap dump. Fixed: http://hg.netbeans.org/core-main/rev/755387040f80
patch works fine - verified
Integrated into 'main-golden', will be available in build *201210090002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Theofanis Oikonomou <firstname.lastname@example.org>
Log: Issue #219603 - Memory leak in org.openide.awt.ToolbarWithOverflow$2