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 Dec 8, JDK 1.6.0_b63 I worked on a webapp project (probably somehow modified it) and the closed it but it is not released from memory. One of the chains - Static reference from org.netbeans.api.project.ProjectManager.DEFAULT (from class org.netbeans.api.project.ProjectManager) : --> org.netbeans.api.project.ProjectManager@0x87028928 (28 bytes) (field modifiedProjects:) --> java.util.HashSet@0x8702a890 (12 bytes) (field map:) --> java.util.HashMap@0x8702bde8 (40 bytes) (field table:) --> [Ljava.util.HashMap$Entry;@0x8702d1a0 (72 bytes) (Element 1 of [Ljava.util.HashMap$Entry;@0x8702d1a0:) --> java.util.HashMap$Entry@0x88b94048 (24 bytes) (field key:) --> org.netbeans.modules.web.project.WebProject@0x870f1d28 (96 bytes)
Well, the ProjectManager cannot free project that is modified, IMO. So I think the problem is not that the PM holds the reference, but that someone modifies the project and does not save it. Do you have any idea what did you do that modified the project?
since the war project (and most/all project types do) actually saves the project in the ProjectOpenedHook.notifyClosed() method, I assume it's something about the project ty[pe that changes metadata after it's been closed. (or after it's been saved in the notifyClosed() hook respectively) reassigning to web for evaluation
I just discovered issue 70052 which is "umbrella" for project memory leaks. *** This issue has been marked as a duplicate of 70052 ***