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 220173 - 35s in computing enabled state for 661 actions
Summary: 35s in computing enabled state for 661 actions
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Actions (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: PERFORMANCE
: 214901 221911 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-10-16 13:38 UTC by Exceptions Reporter
Modified: 2012-11-12 09:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 188677


Attachments
nps snapshot (902.48 KB, application/nps)
2012-10-16 13:39 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2012-10-16 13:38:55 UTC
Build: NetBeans IDE 7.3 Beta (Build 201210011125)
VM: Java HotSpot(TM) Client VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b10
OS: Windows 7

User Comments:
GUEST: Working in a remote folder

GUEST: Creating a new directory.



Maximum slowness yet reported was 35633 ms, average is 21034
Comment 1 Exceptions Reporter 2012-10-16 13:39:08 UTC
Created attachment 126014 [details]
nps snapshot
Comment 2 Stanislav Aubrecht 2012-10-16 14:18:43 UTC
ContextAction.isEnabled() is too slow. Not sure if it's a problem in the Actions module or just some specific Action implementation is wrong.
Please feel free to reassign, thanks.
Comment 3 Jaroslav Tulach 2012-10-24 08:13:50 UTC
One call to 
org.openide.explorer.ExplorerManager$1AtomicSetSelectedNodes.fire()
yields 661 calls to
org.openide.awt.ContextManager$LSet.resultChanged() 19 592 ms	661 times!

We don't have that many visible actions. Some non-visible has to be leaking and remain around. But everything is generic, I have no way to find out from the snapshot what module registered such nasty action.


ergonomics#ed4d6c4b0fcc adds more logging - whoever wants us to help analyse the problem, needs to run with:

-J-Dorg.openide.awt.GeneralAction.level=FINE
Comment 4 Jaroslav Tulach 2012-10-24 09:14:18 UTC
*** Bug 214901 has been marked as a duplicate of this bug. ***
Comment 5 Quality Engineering 2012-10-28 01:49:56 UTC
Integrated into 'main-golden', will be available in build *201210280001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ed4d6c4b0fcc
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #220173: A bit of logging to analyse the problem
Comment 6 Stanislav Aubrecht 2012-11-12 09:56:11 UTC
*** Bug 221911 has been marked as a duplicate of this bug. ***