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 104549 - Memory leak through the static fields of OpenEditors, HintsUI and JavaSource
Summary: Memory leak through the static fields of OpenEditors, HintsUI and JavaSource
Status: RESOLVED DUPLICATE of bug 100753
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks: 104332
  Show dependency tree
 
Reported: 2007-05-22 20:16 UTC by _ sandipchitale
Modified: 2007-05-25 17:23 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Memory leak from static fields (845.06 KB, image/jpeg)
2007-05-22 20:17 UTC, _ sandipchitale
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ sandipchitale 2007-05-22 20:16:26 UTC
Scenario:

1. Create a Web project with VW framework.
2. Switch to the Java tab of the Page1 tab. Click in the editor.
3. Close the project.
4. Hit garbage collect several times.

In the profiler tool you will see that the static fields of OpenEditors, 
HintsUI and JavaSource are holding on to instances of 
JsfJavaEditorSupport$JsfEditorTopComponent.

See attached screenshot from OptimizeIt!
Comment 1 _ sandipchitale 2007-05-22 20:17:48 UTC
Created attachment 42660 [details]
Memory leak from static fields
Comment 2 Jan Lahoda 2007-05-25 17:23:11 UTC
Please note that these fields hold only one editor. So this is not a cumulative
memory leak. Covered by issue #100753.

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