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 - Performance: Outline freezes the IDE for several seconds if there are many Managed Beans
Summary: Performance: Outline freezes the IDE for several seconds if there are many Ma...
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ sandipchitale
Depends on:
Reported: 2008-02-21 17:47 UTC by Winston Prakash
Modified: 2008-02-21 22:56 UTC (History)
0 users

See Also:
Exception Reporter:

Test project with many managed beans (147.45 KB, application/x-compressed)
2008-02-21 17:48 UTC, Winston Prakash

Note You need to log in before you can comment on or make changes to this bug.
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 
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
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