SecureBridge SSH/SFTP Server Retrieve Dir list super slow
-
- Posts: 132
- Joined: Wed 17 Aug 2016 05:57
SecureBridge SSH/SFTP Server Retrieve Dir list super slow
Hi,
I have been using the SFTP server in production for a couple of months now and for the most part it is pretty good (except for some stability issues I mentioned in another thread)
Their is one other thing that is affecting the use of the SFTP server and that is a client doing a directory listing. It seems to get progressively slower the more files are in the directory.
Sometimes it's so slow that the connection times out waiting for it.
I don't know for sure but it seems to be related to getting the file attributes for the listing.
I have been using the SFTP server in production for a couple of months now and for the most part it is pretty good (except for some stability issues I mentioned in another thread)
Their is one other thing that is affecting the use of the SFTP server and that is a client doing a directory listing. It seems to get progressively slower the more files are in the directory.
Sometimes it's so slow that the connection times out waiting for it.
I don't know for sure but it seems to be related to getting the file attributes for the listing.
-
- Posts: 132
- Joined: Wed 17 Aug 2016 05:57
Re: SecureBridge SSH/SFTP Server Retrieve Dir list super slow
Here is an example from FileZilla with 111 files in the directory:
Status: Retrieving directory listing of "/"...
Status: Listing directory /
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
Status: Retrieving directory listing of "/"...
Status: Listing directory /
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
Re: SecureBridge SSH/SFTP Server Retrieve Dir list super slow
Thank you for the information. The issue investigation is in progress. We will inform you when we have any results.
Re: SecureBridge SSH/SFTP Server Retrieve Dir list super slow
The new build of SecureBridge 7.2.3 with improved performance when reading a directory with a large number of files is already available for download. To improve the performance, you can use the event handler TScSFTPServer.RequestFileSecurityAttributes.
Re: SecureBridge SSH/SFTP Server Retrieve Dir list super slow
I am seeing a similar issue with 901. I tried using a simple ftp server and it is close to instant getting the file listing. When using the ScSFTPServer component it is slow and times out on large directories. Both of these are using FileZilla as the client on the same computer.
Re: SecureBridge SSH/SFTP Server Retrieve Dir list super slow
This overhead is associated with the installation of security attributes in the information for each file in the directory. Therefore, to increase performance, you should use the TScSFTPServer.RequestFileSecurityAttributes event handler. Maximum performance will be achieved if you go not perform any actions in this event handler. Only in this case, no security attributes will be set to the information about the files.
For more information about this event, see SecureBridge Help: https://devart.com/sbridge/docs/tscsftp ... ibutes.htm
For more information about this event, see SecureBridge Help: https://devart.com/sbridge/docs/tscsftp ... ibutes.htm
-
- Posts: 132
- Joined: Wed 17 Aug 2016 05:57
Re: SecureBridge SSH/SFTP Server Retrieve Dir list super slow
Hi,
So if we use this event we should not put anything in it? Just a comment?
I am slightly confused on how to use this.
So if we use this event we should not put anything in it? Just a comment?
I am slightly confused on how to use this.
-
- Posts: 132
- Joined: Wed 17 Aug 2016 05:57
Re: SecureBridge SSH/SFTP Server Retrieve Dir list super slow
Ok, I set the event with just a comment and wow it's fast now, however the clients shows ---------- for permissions now.
would it be possible to send a fake set so the client shows something instead of ---------?
would it be possible to send a fake set so the client shows something instead of ---------?
-
- Posts: 132
- Joined: Wed 17 Aug 2016 05:57
Re: SecureBridge SSH/SFTP Server Retrieve Dir list super slow
Did this and it seems to work fine:
Attributes.Permissions:=[pR_USR, pW_USR, pR_GRP, pW_GRP];
Attributes.Permissions:=[pR_USR, pW_USR, pR_GRP, pW_GRP];
Re: SecureBridge SSH/SFTP Server Retrieve Dir list super slow
It is good to see that the problem has been solved.
You found a right solution to the issue.
Feel free to contact us if you have any further questions about our products.
You found a right solution to the issue.
Feel free to contact us if you have any further questions about our products.