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 250080

Summary: org.netbeans.modules.remote.impl.fs.server.FSSTransport.stat_or_lstat: LowPerformance took 35891 ms.
Product: cnd Reporter: Vladimir Kvashin <vkvashin>
Component: RemoteAssignee: Vladimir Kvashin <vkvashin>
Status: NEW ---    
Severity: normal CC: akrasny, alexvsimon
Priority: P2 Keywords: PERFORMANCE
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 215061
Attachments: nps snapshot

Description Vladimir Kvashin 2015-01-28 19:37:16 UTC
This issue was reported manually by vkvashin.
It already has 1 duplicates 


Build: NetBeans IDE Dev (Build 20150128-8a10de61cfcf)
VM: OpenJDK 64-Bit Server VM, 24.65-b04, OpenJDK Runtime Environment, 1.7.0_65-b32
OS: Linux

User Comments:
vkvashin: I expanded a folder on a remote host, selected several files and right clicked. UI was frozen for 35 seconds.



Maximum slowness yet reported was 35891 ms, average is 35891
Comment 1 Vladimir Kvashin 2015-01-28 19:37:18 UTC
Created attachment 151716 [details]
nps snapshot
Comment 2 Alexander Simon 2015-03-06 10:40:09 UTC
P2 because UI freeze 600 seconds
Comment 3 Vladimir Kvashin 2015-03-11 09:28:22 UTC
Snapshot shows that the reason is in o.n.m.versioning.core.VersioningAnnotationProvider.actions()
which calls 
o.n.m.versioning.core.VersioningAnnotationProvider.getOwner()
in the UI thread.

It's obvious that getOwner() can be slow on remote file system (as well as on local slow slow file system, such as /net/...)

In particular, it calls VCSFileProxy.exists() and VCSFileProxy.isDirectory() several times.
Comment 4 Vladimir Kvashin 2015-06-23 15:06:46 UTC
The possible slowdown decreased multiple times after fixing of issue 248243 (Remote file system goes into directories it should not) and issue 251007 (Remote FS hangs for 5 minites on /ws/emu-patch if /ws/...)