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 102337 - ProjectImpl stays in memory after project close.
Summary: ProjectImpl stays in memory after project close.
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Sergey Grinev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-24 14:56 UTC by Sergey Grinev
Modified: 2007-11-28 11:39 UTC (History)
0 users

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 Sergey Grinev 2007-04-24 14:56:13 UTC
It produces about 2M memory leak for lucene size project due to key maps etc.

problem: projects stored in Repository not in regular way but on hardrefs and
were omitted from regular clean routine
fix: 
either call Repository.remove(projectkey) at ProjectImpl.dispose() or
RepositoryUtils.closeUnit()
Comment 1 Sergey Grinev 2007-04-24 17:56:47 UTC
fixed

--- SoftRefHybridRepository.java	20 Apr 2007 16:01:07 -0000	1.1.2.6
+++ SoftRefHybridRepository.java	24 Apr 2007 16:55:08 -0000	1.1.2.7
--- ProjectBase.java	20 Apr 2007 21:09:53 -0000	1.2.2.27.2.91
+++ ProjectBase.java	24 Apr 2007 16:55:07 -0000	1.2.2.27.2.92
Comment 2 Sergey Grinev 2007-11-28 11:39:41 UTC
verified in 200711280000