MINA SSHD
  1. MINA SSHD
  2. SSHD-135

The performance of uploading and downloading files in SFTP subsystem is very poor.

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.5.0
    • Fix Version/s: 0.6.0
    • Labels:
      None
    • Environment:
      OS: Windows 7
      JDK:
      java version "1.6.0_26"
      Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
      Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)

      Description

      When I use FileZilla to upload a big file to the Mina Sftpd, the speed is only 30K/S.

      The main reason is that the file is opened and closed frequently when SftpSubsystem handles SSH_FXP_WRITE message.

        Activity

        Hide
        Guillaume Nodet added a comment -

        Committing to https://svn.apache.org/repos/asf/mina/sshd/trunk ...
        M sshd-core/src/main/java/org/apache/sshd/server/sftp/SftpSubsystem.java
        M sshd-core/src/test/java/org/apache/sshd/SftpTest.java
        Committed r1163306

        Show
        Guillaume Nodet added a comment - Committing to https://svn.apache.org/repos/asf/mina/sshd/trunk ... M sshd-core/src/main/java/org/apache/sshd/server/sftp/SftpSubsystem.java M sshd-core/src/test/java/org/apache/sshd/SftpTest.java Committed r1163306
        Hide
        Liu Tao added a comment -

        Patch to use a single OutputStream and InputStream in the SftpSubsystem

        Show
        Liu Tao added a comment - Patch to use a single OutputStream and InputStream in the SftpSubsystem
        Hide
        Bobby Powers added a comment -

        interesting. We could try creating a single outputstream when SSH_FXP_OPEN is opened with a write flag, closing it on SSH_FXP_CLOSE. Would you be interested in contributing a patch? If not I'll take a stab at this this weekend.

        Show
        Bobby Powers added a comment - interesting. We could try creating a single outputstream when SSH_FXP_OPEN is opened with a write flag, closing it on SSH_FXP_CLOSE. Would you be interested in contributing a patch? If not I'll take a stab at this this weekend.

          People

          • Assignee:
            Guillaume Nodet
            Reporter:
            Liu Tao
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development