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.
Build: NetBeans IDE Dev (Build 200908022240) VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03 OS: Windows XP, 5.1, x86 Maximum slowness yet reported was 36683 ms, average is 36683
Created attachment 86631 [details] nps snapshot
Tomasi, can you please help me understand this report? It looks like AWT is waiting in CloneableSupport.openDocumentImpl for something, probably the "org.openide.text Document Processing" thread. When you look at this thread, most time is spent in classloading and native file access stuff. So can we do anything about this? Should we reassign to platform? There were some slowness reports in the JSP editor, see issue 171046 and issue 169863, but I am not sure they are related, I think not (right, Marku?)
The fixes are likely unrelated. As for me I do not see anything bad from the web perspective in the snapshot.
AWT is waiting in CloneableSupport.openDocumentImpl, but as Jarda noticed it is because BaseJspEditorSupport.BaseJspEditor.componentActivated() calls getEditorPane() - which is blocking, waiting till the document is opened. JSP editor perhaps should not require the document to be loaded when the TopComponent is just activated. (You can normally see "Loading..." panel in the editor during document loading.) So perhaps the componentActivated() method should check just this.pane instead of getEditorPane(). Note that CloneableEditor also fires EditorCookie.Observable.PROP_OPENED_PANES on editor support when done (part of fix of issue 168415).
Marku, so should it be addressed on the JSP editor side? Note that there is also issue 169469 - probably a duplicate?
Hmm, I didn't look at the snapshot carefuly enought before, it is a duplicate of issue #171046. I am sorry. The issue with the getEditorPane() in the componentActivated() has been already fixed. *** This issue has been marked as a duplicate of 171046 ***