I'm using jsch 0.1.33 to act as a SSH client. Initially everything works fine, 
but the client hang almost always hang after running for a weekend. Here's my 
scenario:

I have two clients, every hour each client connects to a SSH server, transfer 
files, then disconnect. Initially it works fine, but after a couple of days, 
one of the clients hang. Here's the stack trace from jdb, it seems to me that 
connect blocks at read indefinitely.

main[1] where
  [1] java.net.SocketInputStream.socketRead0 (native method)
  [2] java.net.SocketInputStream.read (null)
  [3] java.net.SocketInputStream.read (null)
  [4] com.jcraft.jsch.IO.getByte (null)
  [5] com.jcraft.jsch.Session.connect (null)
  [6] com.jcraft.jsch.Session.connect (null)
  [7] com.lucida.insight.dataport.SftpClient.connect (SftpClient.java:50)
  [8] com.lucida.insight.dataport.SftpClient.main (SftpClient.java:507)

> threads
Group system:
  (java.lang.ref.Reference$ReferenceHandler)0x267 Reference Handler cond. 
waiting
  (java.lang.ref.Finalizer$FinalizerThread)0x268  Finalizer         cond. 
waiting
  (java.lang.Thread)0x269                         Signal Dispatcher running
Group main:
  (java.lang.Thread)0x1                           main              running
  (java.util.logging.LogManager$Cleaner)0x26b     Thread-0          unknown

Can anybody help? The project is quite urgent, I'll have to solve this problem 
soon or else boss will force me to go other routes.

Any input will be appreciated.

Roy

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to