Hi, +-From: "Ram Panguluri" <[email protected]> -- |_Date: Mon, 24 May 2010 18:37:05 -0600 _____________ | |Found that we are getting heap space problem from the JSch code. Here is |the stack trace. |Exception in thread "main" java.lang.OutOfMemoryError: Java heap space | at com.jcraft.jsch.Buffer.getString(Buffer.java:167) | at com.jcraft.jsch.Session.read(Session.java:889) | at com.jcraft.jsch.UserAuthPassword.start(UserAuthPassword.java:86) ...
It seems it has happened in processing SSH_MSG_DISCONNECT message from the remote sshd. Which sshd are you connecting to? OpenSSH or other proprietary sshd? As for OOME, according to RFC4251[1], string data is allowed to store uint32 length data, so we need to accept it if its length is really less that 0xffffffff. It seems OpenSSH's implementation will reject the longer string data than 256*1024. We may also should adopt such a heuristics. [1] http://www.ietf.org/rfc/rfc4251.txt 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: @ymnk ------------------------------------------------------------------------------ _______________________________________________ JSch-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jsch-users
