Slow transfer rate for large files
Status: Alpha
Brought to you by:
ymnk
Using JSCH to scp a large file (100 MB+) is
extremely slow. A transfer takes several minutes
even on a local network. Transferring the same file
using the command line scp command takes only 30
seconds.
I am calling jsch from Ant 1.6.
I am using the command line scp command using
Solaris.
uname -a
SunOS myhost 5.9 Generic_112233-08 sun4u sparc
SUNW,Ultra-80
java -version
java version "1.4.0_03"
Java(TM) 2 Runtime Environment, Standard Edition
(build 1.4.0_03-b04)
Java HotSpot(TM) Client VM (build 1.4.0_03-b04,
mixed mode)
Logged In: NO
Try to change buffer sizes in scpTo and scpFrom to a higher
value. It works fine for me.
Mario