Profile Image
Maram
  • ftp-threads

  • jcraft

  • thread-count-increase

  • connectionthread

  • jcraftsjsch

  • ssh2

Please Sign In or to post your comment or answer

Profile Image

Ram Lakshmanan

Hello Maram!

 

 You have like 306 threads in the thread group "Connection thread ftp.kennametal.com session'

 

 

 If you see following is the stack trace of the threads in this thread group:

 

 

java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Ljava/io/FileDescriptor;[BIII)I(Native Method)
at java.net.SocketInputStream.socketRead(Ljava/io/FileDescriptor;[BIII)I(SocketInputStream.java:116)
at java.net.SocketInputStream.read([BIII)I(SocketInputStream.java:171)
- additional info (remote: whqsm052.kmtl.com/172.27.4.4:22, local: localhost/127.0.0.1:49394)
at java.net.SocketInputStream.read([BII)I(SocketInputStream.java:141)
- additional info (remote: whqsm052.kmtl.com/172.27.4.4:22, local: localhost/127.0.0.1:49394)
at com.jcraft.jsch.IO.getByte([BII)V(IO.java:82)
at com.jcraft.jsch.Session.read(Lcom/jcraft/jsch/Buffer;)Lcom/jcraft/jsch/Buffer;(Session.java:926)
at com.jcraft.jsch.Session.run()V(Session.java:1403)
at java.lang.Thread.run()V(Thread.java:836)
Locked ownable synchronizers:
- None

 

 If you notice all of these 306 threads aren't doing any work. Basically waiting to read requests that are coming through the connections. You don't need these many threads. Are you setting any max thread limit on this thread pool?

 

 From the stacktrace you can see these threads are originated from the jcraft's jsch library. Apparently, JSch is a pure Java implementation of SSH2. JSch allows you to connect to an sshd server and use port forwarding, X11 forwarding, file transfer, etc.,

Got something else on mind? Post Your Question

Not the answer you're looking for? Browse other questions tagged
  • ftp-threads

  • jcraft

  • thread-count-increase

  • connectionthread

  • jcraftsjsch

  • ssh2