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 209277 - 23s FolderChildren call to filesystems under Children.MUTEX
Summary: 23s FolderChildren call to filesystems under Children.MUTEX
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2012-03-07 14:59 UTC by Exceptions Reporter
Modified: 2012-10-31 18:02 UTC (History)
22 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 162497


Attachments
nps snapshot (69.83 KB, application/nps)
2012-03-07 14:59 UTC, Exceptions Reporter
Details
nps snapshot (48.88 KB, application/nps)
2012-03-11 10:59 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2012-03-07 14:59:50 UTC
Build: NetBeans IDE 7.1 (Build 201112071828)
VM: Java HotSpot(TM) Client VM, 20.6-b01, Java(TM) SE Runtime Environment, 1.6.0_31-b05
OS: Windows 7

User Comments:
hmichel: Just opening the IDE.



Maximum slowness yet reported was 23986 ms, average is 12589
Comment 1 Exceptions Reporter 2012-03-07 14:59:56 UTC
Created attachment 116434 [details]
nps snapshot
Comment 2 Jaroslav Tulach 2012-03-07 18:05:48 UTC
EDT is blocked waiting to enter Children.MUTEX.readAccess.
org.openide.loaders.FolderChildren$1R.run()	100.0	13786 ms (100%)	10805 ms	
holds it and calls
org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.getChildren()	99.63756	13736 ms (99,6%)	10755 ms	2
Comment 3 Alexander Simon 2012-03-11 10:59:18 UTC
Created attachment 116548 [details]
nps snapshot

expand folder with zip files
Comment 4 Jiri Rechtacek 2012-05-11 06:49:10 UTC
Based on a report http://statistics.netbeans.org/analytics/exception.do?id=578901, most of time is spend in PropertiesDataObject.isMultiLocale() where it calls MIMESupport.findMIMEType() reading FileInputStream in the end.
37 dups so far.
Comment 5 Jan Peska 2012-05-24 14:22:11 UTC
From Properties site it does not seems to be a regression and I can't find any other report which would point to PropertiesDataObject. This one report which Jirka mentioned has an easy fix but I'm afraid it wont help to resolve this whole issue.
Comment 6 Jaroslav Tulach 2012-05-30 09:24:11 UTC
This issue seems to mix reports caused by different problems. Usually the EDT is blocked by some other operation under Children.MUTEX lock in other thread. All the reports are duplicated because the EDT stacktrace is similar, but the causes are different. Somebody should report individual problems. To name a few:

576674: org.netbeans.spi.project.ui.support.NodeFactorySupport$DelegateChildren.createNodes()	100.0	32 469 ms (100%)	32 469 ms
org.netbeans.modules.j2ee.ejbjarproject.ui.EjbsNodeFactory$EjbNodeList.node()	100.0	32 469 ms (100%)	32 469 ms

579563:
org.netbeans.modules.project.ui.ProjectTab$KeepExpansion.run()	100.0	8 838 ms (100%)	0,000 ms
579625:
org.netbeans.modules.project.ui.ProjectTab$KeepExpansion.run()	100.0	16 789 ms (100%)	13 280 ms
578948:
org.netbeans.modules.project.ui.ProjectTab$KeepExpansion.run()	100.0	19 945 ms (100%)	7 017 ms	1

The ProjectTab$KeepExpansion seems pretty common and it would also exlain why this issue has not been observed before 6.9 - expansion was off by default.
Comment 7 Jaroslav Tulach 2012-10-31 18:02:03 UTC
Last report from 7.2 Beta 	2012-07-02