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 242099 - org.netbeans.modules.remote.impl.fs.RemoteFileSystemTransport.readDirectory: LowPerformance took 54148 ms.
Summary: org.netbeans.modules.remote.impl.fs.RemoteFileSystemTransport.readDirectory: ...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2014-02-19 14:43 UTC by Alexander Simon
Modified: 2014-04-24 02:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 207783


Attachments
nps snapshot (52.27 KB, application/nps)
2014-02-19 14:43 UTC, Alexander Simon
Details
Proposed patch (23.54 KB, patch)
2014-02-24 09:23 UTC, Vladimir Kvashin
Details | Diff
better fix (25.36 KB, patch)
2014-02-27 07:58 UTC, Vladimir Kvashin
Details | Diff
Yet better fix that fixes also the last mentioned stack (27.07 KB, patch)
2014-03-11 13:20 UTC, Vladimir Kvashin
Details | Diff
Small changes after review with Maria + more comments (27.49 KB, patch)
2014-03-12 07:04 UTC, Vladimir Kvashin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2014-02-19 14:43:46 UTC
This issue was reported manually by alexvsimon.
It already has 1 duplicates 


Build: NetBeans IDE Dev (Build 20140219-d43f143d245a)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: SunOS

User Comments:
alexvsimon: open full remote project



Maximum slowness yet reported was 54148 ms, average is 54148
Comment 1 Alexander Simon 2014-02-19 14:43:47 UTC
Created attachment 145401 [details]
nps snapshot
Comment 2 Vladimir Kvashin 2014-02-20 12:17:05 UTC
As I understand, it UI was frozen when you
- entered or copy-pasted a path into "File Name" field
- pressed "Open"

In this case FileSystem.findResource is invoked in EDT:

"AWT-EventQueue-0"
at org.netbeans.modules.remote.impl.fs.RemoteFileSystem.findResource(RemoteFileSystem.java:298)
at org.netbeans.modules.remote.impl.fs.RemoteFileSystem.findResource(RemoteFileSystem.java:96)
at org.netbeans.modules.remote.api.ui.RemoteFileSystemView.createFileObject(RemoteFileSystemView.java:107)
at javax.swing.plaf.basic.BasicFileChooserUI$ApproveSelectionAction.actionPerformed(BasicFileChooserUI.java:909)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.Component.processMouseEvent(Component.java:6505)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
...
Comment 3 Vladimir Kvashin 2014-02-20 22:02:16 UTC
Another stack that leads to the same issue is 

"AWT-EventQueue-0"
org.netbeans.modules.remote.api.ui.RemoteFileSystemView.createFileObject(RemoteFileSystemView.java:100)
org.netbeans.modules.remote.api.ui.FileChooserUIImpl$TextFieldKeyListener.keyPressed(FileChooserUIImpl.java:2335)
java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:249)
java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:249)
java.awt.Component.processKeyEvent(Component.java:6463)
javax.swing.JComponent.processKeyEvent(JComponent.java:2828)
java.awt.Component.processEvent(Component.java:6282)
java.awt.Container.processEvent(Container.java:2229)
java.awt.Component.dispatchEventImpl(Component.java:4861)
...
Comment 4 Vladimir Kvashin 2014-02-24 09:23:57 UTC
Created attachment 145530 [details]
Proposed patch
Comment 5 Vladimir Kvashin 2014-02-27 07:58:14 UTC
Created attachment 145624 [details]
better fix
Comment 6 Vladimir Kvashin 2014-03-11 13:20:53 UTC
Created attachment 145946 [details]
Yet better fix that fixes also the last mentioned stack
Comment 7 Vladimir Kvashin 2014-03-12 07:04:46 UTC
Created attachment 145962 [details]
Small changes after review with Maria + more comments
Comment 8 Vladimir Kvashin 2014-03-12 11:09:58 UTC
fixed in 
http://hg.netbeans.org/cnd-main/rev/68985f0f8faf
Comment 9 Quality Engineering 2014-03-13 02:47:34 UTC
Integrated into 'main-silver', will be available in build *201403130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/68985f0f8faf
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #242099 - org.netbeans.modules.remote.impl.fs.RemoteFileSystemTransport.readDirectory: LowPerformance took 54148 ms.
Comment 10 Quality Engineering 2014-04-24 02:06:38 UTC
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/e3ae6cf6efbf
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #242099 - org.netbeans.modules.remote.impl.fs.RemoteFileSystemTransport.readDirectory: LowPerformance took 54148 ms.
(transplanted from 68985f0f8faf28e134b4c2ffdd043bd05a8305b7)