After more experimentation...

ChannelSftp.get(src, dest) performs as well as command-line sftp.

However, ChannelSftp.get(src) doesn't perform that well. I need to use this 
version because I'm delivering the files directly to Amazon S3. And I don't 
want to store the files locally.

The InputStream returned by ChannelSftp.get(src) appears to be a different 
implementation than the InputStream used internally by ChannelSftp.get(src, 
dest).

If I wrap the InputStream in a BufferedInputStream with a large buffer (e.g. 
131072) performance is better. But it's takes about 5 times as long as using 
ChannelSftp.get(src, dest) directly.

Any thoughts?

Thanks again.


On 4/11/12 9:35 AM, "Frenkiel, David" <[email protected]> 
wrote:

Hi All.

I'm using JSch (version 0.1.47) to download some large files via SFTP. 
Everything works great but the transfer rates are really low. With command-line 
SFTP it's 10 times faster.

Is there some configuration that will speed things up?

I'm on Mac OS 10.6.8 with Java 1.6.0_29.

Thanks very much.
David Frenkiel
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to