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 69122 - Project customizer is leaking
Summary: Project customizer is leaking
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords: PERFORMANCE
Depends on: 67845
Blocks:
  Show dependency tree
 
Reported: 2005-11-22 17:36 UTC by Antonin Nebuzelsky
Modified: 2005-11-28 13:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
OptimizeIt screenshot (102.54 KB, image/png)
2005-11-22 17:37 UTC, Antonin Nebuzelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antonin Nebuzelsky 2005-11-22 17:36:55 UTC
There is a significant memory leak left with each Project / Properties dialog
opening and closing. See the attached OptimizeIt screenshot of
ProjectCustomizer$Category reference path. I looked at reference paths of
various objects of the leak and they all seemed to go through
ProjectCustomizer$Category.
Comment 1 Antonin Nebuzelsky 2005-11-22 17:37:24 UTC
Created attachment 27165 [details]
OptimizeIt screenshot
Comment 2 Antonin Nebuzelsky 2005-11-22 17:39:47 UTC
For completeness, I recorded this when repeatedly invoking jEdit project
Properties action. So, this is J2SE project. I did not try with other project types.
Comment 3 Antonin Nebuzelsky 2005-11-22 17:40:37 UTC
[build 200511211900, jdk 1.5.0_05, linux FC3]
Comment 4 Jan Lahoda 2005-11-22 22:00:00 UTC
I think that the main problem (the number of categories grows with opening the
project customizer dialog) is the same as in issue #67845: the projectuiapi
holds categories forever. The J2SE project holds only the last used categories
for each project, which should be more or less OK, I think (the amount of
categories should no grow).

Lets wait for issue #67845 (should be fixed tomorrow, if everything goes OK) and
do the measurement again.
Comment 5 Jan Lahoda 2005-11-23 10:31:11 UTC
I was able to reproduce the leak before fixing issue #67845. I am not able to
reproduce it after fixing issue #67845. Please reopen with new data if you are
still able to reproduce the leak.

Thanks.
Comment 6 Antonin Nebuzelsky 2005-11-28 13:25:34 UTC
The cummulating leak is gone.
After the first invocation of the customizer the various
org.netbeans.modules.java.j2seproject.ui.customizer.* objects are created and
stay on heap since then. But this is acceptable I believe.