Re: [JSch-users] Sftp problem with "frozen" thread - revisited
Status: Alpha
Brought to you by:
ymnk
From: <ym...@jc...> - 2012-10-17 07:39:48
|
Hi, +-From: Bengt Rodehav <be...@ro...> -- |_Date: Wed, 17 Oct 2012 09:26:28 +0200 ____ | |I'm using Apache Camel 2.9.1 which in turn uses jsch 0.1.44 for its sftp |support. Our application polls a remote sftp server once a minute 24/7. |Whenever a file is discovered in a remote folder it is downloaded. We |connect and disconnect for every poll. |I have previously written about this in the following thread: |http://www.mailinglistarchive.com/html/jsc...@li.../2012-09/msg00014.html |Yesterday this happened again and our application then stopped polling the |remote sftp server. This time I used jconsole to get a stacktrace to see |where jsch was stuck. Here it comes: ... Have you enabled Session#setServerAliveInterval(int interval) ? 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 |