Return-Path: X-Original-To: apmail-ant-notifications-archive@minotaur.apache.org Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BF7A6178FD for ; Sat, 25 Apr 2015 12:10:45 +0000 (UTC) Received: (qmail 49628 invoked by uid 500); 25 Apr 2015 12:10:45 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 49560 invoked by uid 500); 25 Apr 2015 12:10:45 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 49455 invoked by uid 99); 25 Apr 2015 12:10:45 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Apr 2015 12:10:45 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6187AE0979; Sat, 25 Apr 2015 12:10:45 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: bodewig@apache.org To: notifications@ant.apache.org Date: Sat, 25 Apr 2015 12:10:46 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/6] ant git commit: increase buffer size to improve transfer speed increase buffer size to improve transfer speed 1024 byte buffer size is insufficient for transfering large files over faster (> 100Mbit) networks. We are transfering files tens or hundreds MB in size and transfer speed was 1MB/s. After increasing the buffer size too 100KB we are getting transfer speeds up to 60MB/s. Please consider increasing the BUFFER_SIZE in the next Ant release. Thanks, Peter Project: http://git-wip-us.apache.org/repos/asf/ant/repo Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/815a36f5 Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/815a36f5 Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/815a36f5 Branch: refs/heads/master Commit: 815a36f52f2e1a2211b58d7eab31cdcb97709dee Parents: f22352a Author: pkures Authored: Wed Apr 22 13:05:25 2015 +0200 Committer: pkures Committed: Wed Apr 22 13:05:25 2015 +0200 ---------------------------------------------------------------------- .../org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ant/blob/815a36f5/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java ---------------------------------------------------------------------- diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java index c1b6b8c..5d4271d 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java @@ -36,7 +36,7 @@ import com.jcraft.jsch.Session; public class ScpToMessage extends AbstractSshMessage { private static final int HUNDRED_KILOBYTES = 102400; - private static final int BUFFER_SIZE = 1024; + private static final int BUFFER_SIZE = 100*1024; private File localFile; private String remotePath;