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 179002 - [69cat] 4s - org.netbeans.modules.ant.freeform.ui.FolderNodeFactory
Summary: [69cat] 4s - org.netbeans.modules.ant.freeform.ui.FolderNodeFactory
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant Freeform (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2009-12-23 05:34 UTC by Exceptions Reporter
Modified: 2011-09-22 14:54 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 158176


Attachments
nps snapshot (256.00 KB, application/nps)
2009-12-23 05:34 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2009-12-23 05:34:09 UTC
Build: NetBeans IDE 6.8 (Build 200912041610)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows 2000, 5.0, x86

User Comments:
ieising: I collapsed the Enterprise Beans branch of my -ejb project. It contains 12 Stateless Session Beans and 2 MDBs.

carpedemus: Importing a maven project

GUEST: Trying to open  modules for an aggregate pom


Maximum slowness yet reported was 14399 ms, average is 6878
Comment 1 Exceptions Reporter 2009-12-23 05:34:15 UTC
Created attachment 92885 [details]
nps snapshot
Comment 2 Jaroslav Tulach 2010-04-07 20:01:32 UTC
All three seconds blocked in org.netbeans.modules.ant.freeform.ui.FolderNodeFactory$RootChildren.node()
which holds Children.MUTEX.writeLock
Comment 3 Jaroslav Tulach 2010-04-07 20:02:34 UTC
All three seconds blocked in org.netbeans.modules.ant.freeform.ui.FolderNodeFactory$RootChildren.node()
which holds Children.MUTEX.writeLock
Comment 4 Peter Nabbefeld 2011-07-27 11:35:20 UTC
There're already 28 duplicates - in my case, it has been about one and a half minute waiting as a result of doing nearly nothing (just activating some tabs by moving over them), see http://statistics.netbeans.org/exceptions/exception.do?id=520889
Comment 5 Tomas Zezula 2011-07-28 13:00:42 UTC
Nothing to do with freeform project. The  evaluation in comment #2 is done in strange way. 

>All three seconds blocked in
>org.netbeans.modules.ant.freeform.ui.FolderNodeFactory$RootChildren.node()
This is the only one stack trace in freeform which just delegates to generic project UI.
But this is not the problem. The setKeys() should be just kind of CAS and should not trigger
nodes calculation (under motex). The problem is in the NodeFactorySupport which exactly does this.

>which holds Children.MUTEX.writeLock
In fact the caller (nodes api called from generic project UI holds the mutex).
I will solve it with Jarda personally and then reassign.
Comment 6 Marian Mirilovic 2011-07-29 07:51:50 UTC
not for 7.0.1
Comment 7 Tomas Zezula 2011-09-20 16:46:21 UTC
Fixed jet-main f3f5d5ed00b9
Comment 8 Quality Engineering 2011-09-22 14:54:49 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/f3f5d5ed00b9
User: Tomas Zezula <tzezula@netbeans.org>
Log: #179002:[69cat] 4s - org.netbeans.modules.ant.freeform.ui.FolderNodeFactory