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 2008032000007 I noticed that a couple of hours after using Netbeans its heap nearly doubled (70MB to 150MB) even after forced GC. This makes Netbeans noticeably slower across the board simply due to the extra GC overhead. I posted a hprof memory dump at http://bbs.darktech.org/netbeans-heap.rar Please note there might be other large leaks shown by this dump. I just posted to the debugger first because the top-10 entries seemed to point in this direction. Please let me know as soon as you finish downloading a copy of this dump so I can erase it off my server.
PS: The dump file is 35MB
I've downloaded the file, thanks. I've found NetBeans profiler completely unusable for this due to following exception java.lang.ClassCastException: org.netbeans.lib.profiler.ui.components.FilterComponent cannot be cast to javax.swing.JComboBox for which I've submitted some issue via automatic reporting tool. After opeining in JHat, I see several instances of JPDADebuggerImpl, which are held by a buch of associated actions, etc. I'll explore what the problem can be...
From heap.hprof/roots/0x0c88fb48 it looks like all instances of JPDADebuggerImpl are held by org.netbeans.modules.debugger.jpda.heapwalk.models.HeapActionsFilter@0xbe007d0 (16 bytes) (field debugger:) But the root of the problem seems to be in Models.defaultExpansionModels static field.
Fixed by using weak reference: changeset: 75431:2a773ccf117f http://hg.netbeans.org/main/rev/2a773ccf117f
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.