Discussion:
[JSch-users] What are the ways to speed up JSch
Ravi Joshi
2014-01-12 17:16:51 UTC
Permalink
Hi,

I am using JSch v0.1.50 for following three functions-
(1) Copy file from local to remote machine
(2) Copy file from remote to local machine
(3) Execute command on remote machine

I am following ScpTo.java (http://www.jcraft.com/jsch/examples/ScpTo.java.html), ScpFrom.java (http://www.jcraft.com/jsch/examples/ScpFrom.java.html) and Exec.java (http://www.jcraft.com/jsch/examples/Exec.java.html) respectively for above functionalities.

In my implementation, I have com.jcraft.jsch.Session object as a class variable which is being reused every time. I have following two questions-

(1) Why Exec.java has an an implicit sleep (line no. 84)? Can I remove/reduce this sleep?
(2) What are the ways to speed up JSch in these scenarios?


-
Thanks
Ravi

Loading...