Hi, +-From: Prakash Babu <jprakashbab...@gmail.com> -- |_Date: Mon, 10 Feb 2014 11:54:01 +0530 __________ | |I am using JSCH 0.1.44 and trying to execute a remote command |on a Solaris Host and the session.connect() waits indefinitely.
|JSch jsch = new JSch(); |Session session = jsch.getSession(m_user, m_host, m_port); |session.connect(60000) |Jstack thread dump shows the following stack trace |java.lang.Thread.State: RUNNABLE | at java.util.WeakHashMap.get(WeakHashMap.java:355) | at javax.crypto.SunJCE_b.a(DashoA13*..) ... We have heard the similar problem from Java7 user. After some investigations, we have found that it has been caused by the following bug, https://bugs.openjdk.java.net/browse/JDK-8028627 By that bug, the simultaneous invocations of javax.crypto.Cipher#chooseProvider() will cause an infinite loop with 100% CPU use. Your stack trace does not include "Cipher#chooseProvider()", but I guess Java6 has also the similar bug. Even though it is a serious bug, it seems that it has not been fixed even in Java8 yet. The following version has tried to work around that bug, and skip checking for the availability of cipher methods "arcfour", "arcfour128", etc. if they are not used. http://www.jcraft.com/jsch/jsch-0.1.51-rc8.zip Sincerely, -- Atsuhiko Yamanaka JCraft,Inc. 1-14-20 HONCHO AOBA-KU, SENDAI, MIYAGI 980-0014 Japan. Tel +81-22-723-2150 Skype callto://jcraft/ Twitter: http://twitter.com/ymnk Facebook: http://facebook.com/aymnk ------------------------------------------------------------------------------ Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce. http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users