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 203495 - [71cat] URLDisplayer.showURL() blocking for 3660 ms.
Summary: [71cat] URLDisplayer.showURL() blocking for 3660 ms.
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2011-10-11 11:11 UTC by ytn01
Modified: 2012-06-28 04:54 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 181876


Attachments
nps snapshot (22.77 KB, application/nps)
2011-10-11 11:11 UTC, ytn01
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ytn01 2011-10-11 11:11:33 UTC
This bug was originally marked as duplicate of bug 183815, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.1 Beta (Build 201109222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02-384, Java(TM) SE Runtime Environment, 1.6.0_26-b03-384-10M3425
OS: Mac OS X

User Comments:
ytn01: On the services window, I selected a web application from a list of web applications that were deployed on a Tomcat 7 server, and opened it via the "Open in Browser" context command.



Maximum slowness yet reported was 3660 ms, average is 3660
Comment 1 ytn01 2011-10-11 11:11:39 UTC
Created attachment 111839 [details]
nps snapshot
Comment 2 Antonin Nebuzelsky 2011-10-18 13:23:53 UTC
Seems like org.netbeans.modules.tomcat5.nodes.actions.OpenURLAction.performAction() could be rescheduled to another thread to not block EDT...

Reassigning for evaluation.
Comment 3 Petr Hejl 2011-11-09 10:48:25 UTC
Actually URLDisplayer.showURL() is taking so long. If we consider it a real issue we have two options I guess:

- fix the URLDisplayer.showURL() to not to block at all
- fix URLDisplayer.showURL() javadoc to explicitly document that it should not be called from AWT and fix all calls of this method in the IDE

Note that majority of calls of this method happens in EDT. I think it is a bad idea to pick a random place and to fix isolated case.
Comment 4 Stanislav Aubrecht 2012-06-26 10:54:25 UTC
I moved a part of URLDisplayer initialization out of EDT.

core-main 00d29be4bf5e
Comment 5 Quality Engineering 2012-06-28 04:54:38 UTC
Integrated into 'main-golden', will be available in build *201206280002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/00d29be4bf5e
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #203495 - move part of URLDisplayer initialization out of EDT