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.
This bug was originally marked as duplicate of bug 204067, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE Dev (Build 20120823-6947d3b2ad09) VM: Java HotSpot(TM) 64-Bit Server VM, 21.1-b02, Java(TM) SE Runtime Environment, 1.7.0_01-b08 OS: Windows 7 Maximum slowness yet reported was 6255 ms, average is 6255
Created attachment 123503 [details] nps snapshot
First to note, the snapshot captures IDE startup. Most of the threads are slowed down because of classloading. Some threads are still waiting on project load. JEE JSF PageFlowController initializes in AWT thread, and attempts to load the config model = XML parsing + classloading. The Load projects thread (which many other threads are waiting for to complete) is computing j2ee.ProjectHookImpl.getEEversion(). Consider offloading the EE project initialization to a separate request processor - if possible. The EE version is used for logging !
I didn't see the snapshot yet, but the PageFlow is my area -> reassigning.
So there are two problematic places one in the maven.j2ee which I fixed since the change made sense, was easy and straightforward. Martine please take a look on that, but I believe that you will agree with it: web-main #54cb98bcb53d The second one was in the web.jsf.navigation. I moved expensive PageFlowController initialization from the AWT EDT to the background thread. The UI doesn't freeze anymore (by opening complex files) and users just has to wait for completed loading of the page flow model (indicated in the status bar). web-main #2b5236c1c068
It looks beautiful, thanks Martine
Integrated into 'main-golden', will be available in build *201210310001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/54cb98bcb53d User: Martin Fousek <marfous@netbeans.org> Log: #217341 - JSF Page controller model loads in AWT thread #1