This is output of jstack

"Daemon of host 229 (ip = xxxxxxxx )" daemon prio=10 tid=0x08359400
nid=0x108b sleeping[0xb2c9a000..0xb2c9afb0]
   java.lang.Thread.State: TIMED_WAITING (sleeping)
      at java.lang.Thread.sleep(Native Method)
      at com.jcraft.jsch.Session.write(Session.java:1159)
      at com.jcraft.jsch.Request.write(Request.java:58)
      at com.jcraft.jsch.RequestExec.request(RequestExec.java:55)
      at com.jcraft.jsch.ChannelExec.start(ChannelExec.java:43)
      at com.jcraft.jsch.Channel.connect(Channel.java:221)
      at net.prominic.jnetmon.SshDaemon.exec(SshDaemon.java:621)
      at net.prominic.jnetmon.SshDaemon.runCommand(SshDaemon.java:776)
      at net.prominic.jnetmon.SingleCommandSshCollector.run
(SingleCommandSshCollector.java:250)
      at net.prominic.jnetmon.SshDaemon.runCollector(SshDaemon.java:855)
      at net.prominic.jnetmon.DaemonTimerTask.runDaemonTask
(DaemonTimerTask.java:63)
      at net.prominic.jnetmon.DaemonTimerTask.run(DaemonTimerTask.java:38)
      at net.prominic.jnetmon.timer.TimerThread.mainLoop
(MonitorTimer.java:653)
      at net.prominic.jnetmon.timer.TimerThread.run(MonitorTimer.java:589)

The full output it quite long, this host (229) is one of the stuck hosts.
So I think this is what you need.
Once it is stuck, output of jstack always looks like this, it seems that it
is always running Session.java:1159

Pan





                                                                       
  From:       y...@jcraft.com (Atsuhiko Yamanaka)                      
                                                                       
  To:         pa...@prominic.net                                       
                                                                       
  Cc:         jsch-users@lists.sourceforge.net                         
                                                                       
  Date:       2009/06/15 13:58                                         
                                                                       
  Subject:    Re: [JSch-users] NPE and infinite loop under (very) high work load
                                                                       





Hi,

Thank you for your feedback,

   +-From: Pan Li <pa...@prominic.net> ------
   |_Date: Mon, 15 Jun 2009 13:42:01 +0800 __
   |
   |Each ssh session runs in its own thread. We thought it was a dead lock
in
   |our code. We used jstack to find out the deadlock. But jstack didn't
find
   |any deadlock, it shown that the thread was running the same lines in
   |Session.java. That was how we figured out the problem.

Is it possible to send me the output from jstack?


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/

------------------------------------------------------------------------------

Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

<<inline: graycol.gif>>

<<inline: ecblank.gif>>

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to