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.

Bug 70161 - Modified and closed project not released from memory
Summary: Modified and closed project not released from memory
Status: RESOLVED DUPLICATE of bug 70052
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 5.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: David Konecny
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2005-12-09 16:46 UTC by _ rkubacki
Modified: 2007-10-11 11:06 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2005-12-09 16:46:49 UTC
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)
Comment 1 Jan Lahoda 2005-12-10 13:07:38 UTC
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?
Comment 2 Milos Kleint 2007-01-23 16:18:00 UTC
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
Comment 3 David Konecny 2007-10-11 11:06:51 UTC
I just discovered issue 70052 which is "umbrella" for project memory leaks.

*** This issue has been marked as a duplicate of 70052 ***