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 128055

Summary: Performance: Outline freezes the IDE for several seconds if there are many Managed Beans
Product: obsolete Reporter: Winston Prakash <wjprakash>
Component: visualwebAssignee: _ sandipchitale <sandipchitale>
Status: NEW ---    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Test project with many managed beans

Description Winston Prakash 2008-02-21 17:47:13 UTC
This is reported by customer.

When a project contains several Managed beans and several pages, the page comes
up quickly (15-20secs). But after that until the outline is refreshed, the whole
IDE freezes. No indication (no wait cursor), to say what is going on. Probably,
outline could use some asynchronous ChilderenFactory utility to avoid IDE freeze,
when insync models all the Managed Beans. Attaching a project that depicts the 
problem.
Comment 1 Winston Prakash 2008-02-21 17:48:40 UTC
Created attachment 57000 [details]
Test project with many managed beans
Comment 2 Peter Zavadsky 2008-02-21 19:15:32 UTC
Investigating.
Comment 3 Peter Zavadsky 2008-02-21 19:51:12 UTC
So it seems that the method FacesDesignProject.findDesignContexts(String[]) is the one causing the problems. However
this methods blocks the AWT, and it seems it is possible to be called from AWT thread only.
I think insync needs to provide loading mechanism similar to when loading the FacesModel to solve this, i.e. that the
loading could happen in the non-AWT thread. Then the outline children could use the mechanism.
Comment 4 Winston Prakash 2008-02-21 22:56:30 UTC
Changing this to an enhancement. It turns out user do not have that many 
Session Beans. We do not model all the page beans. So for now, this should
be OK