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.
Even though all editor tabs are closed, NbEditorDocument instance is still held in memory. Please see the heapdump - NbEditorDocument instance #3 for details
reassigning to Mila - the Attached test proves there is a problem with GCing the Document instance.
Created attachment 134367 [details] test
http://hg.netbeans.org/jet-main/rev/83fab96e9746
Sorry, but I had to revert for now (the patch allowed the Document to be GCed without converting the PositionRefs into the external kind, which then broke a lot of Java hints tests and has probably some effect on the refactoring preview as well): http://hg.netbeans.org/jet-main/rev/5240bc3466b2 I'll try to look for a solution for converting the PositionRefs in this case.
Integrated into 'main-golden', will be available in build *201305172300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/83fab96e9746 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #228855 - Memory leak in openide.text.
Re-applied, lets see how it will work this time: http://hg.netbeans.org/jet-main/rev/2afb2c7c14ae
Integrated into 'main-silver', will be available in build *201308310001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/2afb2c7c14ae User: Jan Lahoda <jlahoda@netbeans.org> Log: #228855: re-applying Mila's fix for the leak, and ensuring the PositionRefs are reasonable for visually not opened Documents.
Honzo, thanks for the fix.