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.
While investigating http://www.netbeans.org/issues/show_bug.cgi?id=98405 I can see that HintsUI keeps a strong reference to the UI. This leads to memory leak, while opening/closing of schema files.
Additional Information: EntPack introduces a multi-view schema editor, which in turn brings in SchemaModel and AXIModel. Opening/Closing a schema should discard these models and the multiview elements as well. I have a heap dump but the size it about 50MB, hence I'm attaching these screen shots of path to GCs for some items.
Created attachment 41593 [details] image1
Created attachment 41594 [details] image2
Created attachment 41595 [details] image3
Ok, I was wrong, sorry. The patches so far fix holding of the "last" editor in java/source and editor/hints, but not when working with multiview editors :-(. Anyway, at most one component is held (->P3), not necessarily the last one (->P2). I will try to do something about this for M10 - I would prefer one place that would do the magic making the listeners simpler than creating WeakReferences everywhere. Comments?
I'm not sure why this was made a P2. IMO, this should be fixed for Preview as this impacts a high priority issue 98405.
This should be fixed together with #100752 (you file duplicate of this recently too). What build are you using (every good bug report should contain this information)? *** This issue has been marked as a duplicate of 100753 ***