You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "VHelpYou (via GitHub)" <gi...@apache.org> on 2024/03/19 20:26:32 UTC

[I] Performance Disparity Between Apache Mina and JSCH [mina-sshd]

VHelpYou opened a new issue, #478:
URL: https://github.com/apache/mina-sshd/issues/478

   ### Version
   
   2.11.0
   
   ### Bug description
   
   We are currently transitioning from using JSCH to Apache Mina for our SFTP calls. My application requires high scalability and  performance, as it handles teh transmission over 50,000 files totaling 5 TB in size.
   Previously we utilized JSCH but we have now adopted to Apache Mina.
   However, we have observed the  degradation in the throughput of file transmission. 
   
   ### Actual behavior
   
   We noticed Approximately 3 to 4 X times slowdown in Apache Mina compared to JSCH. However, I'm unsure if there are other factors contributing the to the issue. I'm curious if there have been any parallel benchmarking or testing conducted to similar style.
   On a side note, we are expecting logging is set to DEBUG and that is contributing to some slowness.
   
   ### Expected behavior
   
   We expected Apache mina is much faster than any older sftp java libraries.
   
   ### Relevant log output
   
   _No response_
   
   ### Other information
   
   _No response_


-- 
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-unsubscribe@mina.apache.org.apache.org

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


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


Re: [I] Performance Disparity Between Apache Mina and JSCH [mina-sshd]

Posted by "tomaswolf (via GitHub)" <gi...@apache.org>.
tomaswolf commented on issue #478:
URL: https://github.com/apache/mina-sshd/issues/478#issuecomment-2060045253

   Also see #485. The transfer speed may also depend on how exactly your code transfers files.


-- 
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-unsubscribe@mina.apache.org

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


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


Re: [I] Performance Disparity Between Apache Mina and JSCH [mina-sshd]

Posted by "tomaswolf (via GitHub)" <gi...@apache.org>.
tomaswolf commented on issue #478:
URL: https://github.com/apache/mina-sshd/issues/478#issuecomment-2027573421

   Why should a newer library be much faster? It's the same protocol. If both are programmed correctly, they should have about the same performance.
   
   My local tests show that with INFO logging Apache MINA SSHD has about the same performance for uploads and downloads of small or large files as JSch, and both are competitive with OpenSSH. In all three timing is linear with file size.
   
   DEBUG logging does slow down things quite a bit. In particular I would expect Apache MINA SSHD to log much more than JSch.
   
   It's not a good idea to run a production application with DEBUG logging on by default.


-- 
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-unsubscribe@mina.apache.org

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


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