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

Summary: Memory leak through the static fields of OpenEditors, HintsUI and JavaSource
Product: java Reporter: _ sandipchitale <sandipchitale>
Component: SourceAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: quynguyen
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 104332    
Attachments: Memory leak from static fields

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 ***