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 239779

Summary: org.openide.nodes.EntrySupportLazy.getNodesCount: LowPerformance took 71247 ms.
Product: platform Reporter: Alexander Simon <alexvsimon>
Component: Data SystemsAssignee: Jaroslav Havlin <jhavlin>
Status: NEW ---    
Severity: normal CC: chila, clemsg, david_mitchell, exceptions_reporter, janunezc, jmichelberger, kogeza, nrat51, ProjectOrc, vkvashin
Priority: P3 Keywords: PERFORMANCE
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 203258
Attachments: nps snapshot

Description Alexander Simon 2013-12-25 07:09:41 UTC
Build: NetBeans IDE 7.4 (Build 20131204-d7efa1bcda5e)
VM: Java HotSpot(TM) Client VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: SunOS

User Comments:
vkvashin: Just browsed files in explorer (Favorites view)

alexvsimon: do not remember



Maximum slowness yet reported was 71247 ms, average is 50931
Comment 1 Alexander Simon 2013-12-25 07:09:44 UTC
Created attachment 143438 [details]
nps snapshot
Comment 2 Jan Peska 2014-01-08 12:39:07 UTC
Data System Nodes thread block Chidren.MUTEX for 70s - it seems it should not look for data objects (DataObject.find()) in node creation. Reassigning to Data Systems
Comment 3 Ondrej Vrabec 2014-02-18 09:13:45 UTC
*** Bug 242031 has been marked as a duplicate of this bug. ***
Comment 4 Ondrej Vrabec 2014-02-18 09:14:49 UTC
Another dup is in bug #242031:
> AWT waits for Children.MUTEX write lock that is held by  "org.netbeans.modules.project.ui.ProjectTab" running NodeOp.findPath. And that thread is stuck by accessing disk in DataObject.find - unfortunately because this is running outside of EDT, FolderChildren does not create a delayed/lazy nodes but a full node backed up by a real dataobject. So we're back in the same situation as if DataObject.find was called in AWT.
> Solutions could be:
> 1) ALWAYS create the Delayed node
> 2) turn off Synchronize Views with Editor - i assume that's why "org.netbeans.modules.project.ui.ProjectTab" is running
> 3) "org.netbeans.modules.project.ui.ProjectTab" runs NodeOp.find() in EDT
From these only 1) could resolve all problems.
Comment 5 Ondrej Vrabec 2014-03-05 12:07:50 UTC
*** Bug 226132 has been marked as a duplicate of this bug. ***