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

        Liu Tao created issue -
        Liu Tao made changes -
        Field Original Value New Value
        Environment OS: Windows 7
        JDK:
        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 big file to the Mina Sftpd, the speed is only 30K/S.

        Liu Tao made changes -
        Description When I use FileZilla to upload big file to the Mina Sftpd, the speed is only 30K/S.

        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.
        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.
        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
        Liu Tao made changes -
        Attachment sftp.patch [ 12485074 ]
        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
        Guillaume Nodet made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Guillaume Nodet [ gnt ]
        Fix Version/s 0.6.0 [ 12315514 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development