[ 
https://issues.apache.org/jira/browse/SSHD-1217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17434146#comment-17434146
 ] 

Roberto Deandrea commented on SSHD-1217:
----------------------------------------

Hi Thomas,

I'm afraid for the messy with traces...

I attached new clean traces (trace.sshd-frontend-sftplist.log.zip) of Apache 
SSHD front-end server related to a client sftp list of a folder containing 2000 
files.

 

The list command on traces start at this line :

*[10/26/21 6:38:22:756 GMT]* 0000013a id=00000000 
org.apache.sshd.sftp.server.AbstractSftpSubsystemHelper 1 process 
process(ServerSessionImpl[part1@/172.31.0.1:41154])[length=15, 
type=*SSH_FXP_OPENDIR*, id=2] processing

 

The list command on traces end at this line :

*[10/26/21 6:39:26:203 GMT]* 0000013a id=00000000 
org.apache.sshd.sftp.server.AbstractSftpSubsystemHelper 1 sendStatus 
doSendStatus(ServerSessionImpl[part1@/172.31.0.1:41154])[id=7] *SSH_FXP_STATUS 
(substatus=SSH_FX_EOF, lang=, msg=Directory reading is done)*

 

It takes about 64 secs to list 2000 files on the remote folder of the Apache 
SSHD backend server.

 

I hope the new traces can help to understand if something strange or wrong 
happen on the front-end server.

 

Kind Regards

Roberto

 

 

> Slow performance listing huge number of files on Apache SSHD server
> -------------------------------------------------------------------
>
>                 Key: SSHD-1217
>                 URL: https://issues.apache.org/jira/browse/SSHD-1217
>             Project: MINA SSHD
>          Issue Type: Improvement
>    Affects Versions: 2.6.0
>            Reporter: Roberto Deandrea
>            Priority: Minor
>         Attachments: trace.sshd-frontend-sftplist.log.zip
>
>
> Hi Thomas,
> I noted slow performance listing files on the front-end Apache SSHD server in 
> the same scenario as https://issues.apache.org/jira/browse/SSHD-1215
> The front-end Apache SSHD server is configured with a Filesystem built upon 
> SFTPFileSystemProvider to proxy files to an Apache SSHD back-end server.
>  
> In the /inbox folder of the Apache SSHD backend server I have 2000 files.
> The client sftp ls  commands take 2 secs on the backend Apache SSHD server, 
> instead it takes about 48 secs on the front-end Apache SSHD server.
> For greater number of files in the /inbox folder times are getting worse.
>  
> I have full traces of  sftp list commands to front-end Apache SSHD server 
> that is attached to this jira.[^trace.frontend.sshd.log.zip]
> I looked through the traces on the front-end server and it seems to me that 
> for every files in the folder the sftp client on the front-end server creates 
> a SSH_MSG_CHANNEL_DATA generating tcp traffic that slow down the performance 
> of the list command.
> Obviously this does not happen when a sftp client connects directly to the 
> backend Apache SSHD server.
> Can you take a look at traces on the front-end Apache SSHD server   ?
> Do you think it's possbile change something to improve performance of list 
> files in this situation ?
>  
> Thanks in advance
>  
> Kind Regards
> Roberto
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to