Hello Atsuhiko,

No, I haven't done this yet. I wanted to keep the configuration as is just
to make sure the problem would occur again (so I could take the
stacktrace). I will activate the serverAliveInterval in the next couple of
days and see if that helps. In a few weeks we will also upgrade to Jsch
0.1.48 (part of latest Camel).

But, how is it possible that the read() call can hang for several days?
Does Jsch use any default read timeout? If not, how can I configure it?
Finally I would hope that the TCPKeepAlive at the socket level would kick
in after a while and mark the other end as "dead" and then close the socket.

/Bengt

2012/10/17 Atsuhiko Yamanaka <y...@jcraft.com>

> Hi,
>
>    +-From: Bengt Rodehav <be...@rodehav.com> --
>    |_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/jsch-users@lists.sourceforge.net/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
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to