ryabovgs commented on issue #524:
URL: https://github.com/apache/mina-sshd/issues/524#issuecomment-2211826305

   Hi @tomaswolf. Can you please advise how I can optimise Mina setup (I use 
default one) to reach same performance as JSCH?
   **Problem**: I got 20% degradation in speed for uploading of 50 files of 
40mb 
   Main concern from profiling point of view(VisualVM) that OutputStream::write 
looks as 27s total vs 10s of JSCH. 
   **Approach**: I use Streams approach as you mentioned as fastest.
   Default setup and streams approach details:
   - SshClient.setUpDefaultClient()
   - DefaultSftpClientFactory.INSTANCE.createSftpClient(clientSession);
   - outputStream = sftpClient.write(file) // here during debug session I see 
that bufferSize 32755 is used
   - tried also MinaServiceFactoryFactory/Nio2ServiceFactoryFactory without 
good speed too via setIoServiceFactoryFactory(sshClient, factory);
   May be the reason could be async nature of Mina and I missed the **guide** 
how to use it optimistically - could you plz point out if it exists also.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to