Re: [JSch-users] Slow performance using JSCH for SFTP
Status: Alpha
Brought to you by:
ymnk
From: <ym...@jc...> - 2011-06-20 06:46:29
|
Hi, Thank you for interest feedback. +-From: rush gage <rus...@gm...> --- |_Date: Thu, 16 Jun 2011 12:25:10 -0700 __ | |We are currently using JSCH for doing SFTP from a Remote Redhat Linux server |to a Local Redhat Linux Server. |The command line SFTP fetches a 100 MB File in 6 seconds, where as the Java |program using JSCH gets the file in 30 seconds. |While monitoring netstat on the remote server, we noticed that the Send-Q |shows a max of 32K waiting for client to read during the SFTP using JSCH, |but during command line SFTP it shows around 400K waiting for client to |read. |I tested my application using both release 44 and 45-rc5 and there is no |difference in performance . |It seems like JSCH is reading data at 32K chunks, do you have any |suggestions on how to increase the chunk size JSCH? I'll investigate what has happened. Sincerely, -- Atsuhiko Yamanaka JCraft,Inc. 1-14-20 HONCHO AOBA-KU, SENDAI, MIYAGI 980-0014 Japan. Tel +81-22-723-2150 +1-415-578-3454 Skype callto://jcraft/ Twitter: http://twitter.com/ymnk Facebook: http://facebook.com/aymnk |