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 192158

Summary: 21s in ChildrenSupport.rescanChildren() via delete event and getTargets()
Product: platform Reporter: krissco <krissco>
Component: Data SystemsAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED DUPLICATE    
Severity: normal CC: aasmunds, anebuzelsky, arturgrigor, dao, dig, dukeofgaming, flotho, intoxicadocoder, jamiehutber, jmcraig, jmichelberger, keviocastro, kganfield, kingsquare, marcotts, massimo, matthies, mchl, mhuebner, misterm, mmirilovic, olksy, rohitbrai, rptmaestro, sc1, serendev, simpatico, static_void, tnleeuw, valenfor, xpilot, ynov
Priority: P2 Keywords: PERFORMANCE
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 159419
Attachments: nps snapshot

Description krissco 2010-11-19 07:27:35 UTC
Build: NetBeans IDE 7.0 Beta (Build 201011152355)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Windows XP

User Comments:
xpilot: Started debuggging of the project

xpilot: Tried to debug project

krissco: I switched back to the IDE after browsing the Internet.

tnleeuw: Sorry, not sure what exactly triggered this warning this time... Was looking at some Java code while in the background a Maven project build is running.
Perhaps the slowness comes from the Navigator view populating itself... ?

tnleeuw: Opening a Spring Context XML file

GUEST: Generatign RESTful ws in Maven project

flotho: updating modules from 6.7

tnleeuw: Opening Java file in a new project, containing compilation errors.

GUEST: Opened a folder with alot of subfolders on a local SATA disk.



Maximum slowness yet reported was 20828 ms, average is 8387
Comment 1 krissco 2010-11-19 07:27:45 UTC
Created attachment 103094 [details]
nps snapshot
Comment 2 Marian Mirilovic 2011-05-30 09:18:56 UTC
172 duplicates -> P2 at least
Comment 3 Yulia Novozhilova 2011-06-17 14:58:14 UTC
According to snapshots the vast majority of the time is spent in the method org.openide.loaders.DataObjectPool.find(). I suppose it waits for some another thread that locks "this" object. Reassigning to Datasystems for investigation.
Comment 4 Jaroslav Tulach 2011-06-19 19:43:22 UTC
Yes, the DataObjectPool.find is blocked by other thread which does:
org.netbeans.modules.masterfs.filebasedfs.children.ChildrenSupport.rescanChildren()
Comment 5 Jaroslav Tulach 2011-06-22 11:38:57 UTC
Won't be fixed for 7.0.1.
Comment 6 Jaroslav Tulach 2011-07-18 11:50:28 UTC
The snapshot attached to this issue is without any doubts duplicate of bug 192193.

*** This bug has been marked as a duplicate of bug 192193 ***