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 125058

Summary: memory leak in org.netbeans.modules.visualweb.jsfsupport.container.RaveFacesContext
Product: obsolete Reporter: Quy Nguyen <quynguyen>
Component: visualwebAssignee: Winston Prakash <wjprakash>
Status: RESOLVED FIXED    
Severity: blocker Keywords: PERFORMANCE
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 123530    

Description Quy Nguyen 2008-01-10 19:52:03 UTC
The RaveFacesContext instance is not released from memory after a visual web project is closed.  This causes a
significant amount of model objects to leak in memory.

To reproduce:
1) Create a vw project
2) Close the navigator (suppresses another leak)
3) DnD some components onto the page
4) Close the page and the project
5) Open/close the properties window (suppresses another leak)

Many of the visualweb model objects are still in memory, held by the RaveFacesContext instance.
Comment 1 Quy Nguyen 2008-01-11 01:09:31 UTC
Fixed.

Checking in FacesContainer.java;
/cvs/visualweb/jsfsupport/src/org/netbeans/modules/visualweb/jsfsupport/container/FacesContainer.java,v  <-- 
FacesContainer.java
new revision: 1.8; previous revision: 1.7
done
Comment 2 Quy Nguyen 2008-01-30 07:08:29 UTC
The fix for this issue was reverted in Issue 125965.  Another solution is needed.
Comment 3 Winston Prakash 2008-02-04 15:18:30 UTC
designer/jsf now calls UIComponent.rendersChildren() via InSyncServiceProvider ->
FacesContainer.isComponentRendersChildren(), which correctly sets the FacesContext first. 

Therefore, reverting the fix for the memory leak again.