Hi Developers,


I need to develop application that run sedulously many SFTP and SSH
channels to many remote hosts servers.



I saw that when creating session (usint SSHClient and channels associated
with it), many threads(13)  are created.

2022-04-01T11:37:52.289922900 group main 9
sshd-SshClient[5ffead27]-nio2-thread-1 id=16 state=WAITING type=Daemon

2022-04-01T11:37:15.119853700 group main 11
sshd-SshClient[5ffead27]-nio2-thread-2 id=18 state=WAITING type=Daemon

2022-04-01T11:37:15.119853700 group main 12
sshd-SshClient[5ffead27]-nio2-thread-3 id=19 state=WAITING type=Daemon

2022-04-01T11:37:15.119853700 group main 13
sshd-SshClient[5ffead27]-nio2-thread-4 id=20 state=WAITING type=Daemon

2022-04-01T11:37:15.119853700 group main 14
sshd-SshClient[5ffead27]-nio2-thread-5 id=21 state=RUNNABLE type=Daemon

2022-04-01T11:37:15.119853700 group main 15
sshd-SshClient[5ffead27]-nio2-thread-6 id=22 state=WAITING type=Daemon

2022-04-01T11:37:15.119853700 group main 16
sshd-SshClient[5ffead27]-nio2-thread-7 id=23 state=WAITING type=Daemon

2022-04-01T11:37:15.119853700 group main 17
sshd-SshClient[5ffead27]-nio2-thread-8 id=24 state=WAITING type=Daemon

2022-04-01T11:37:15.119853700 group main 18
sshd-SshClient[5ffead27]-nio2-thread-9 id=25 state=WAITING type=Daemon

2022-04-01T11:37:15.119853700 group main 19
sshd-SshClient[5ffead27]-nio2-thread-10 id=26 state=WAITING type=Daemon

2022-04-01T11:37:15.119853700 group main 20
sshd-SshClient[5ffead27]-nio2-thread-11 id=27 state=WAITING type=Daemon

2022-04-01T11:37:15.119853700 group main 21
sshd-SshClient[5ffead27]-nio2-thread-12 id=28 state=WAITING type=Daemon

2022-04-01T11:37:15.119853700 group main 22
sshd-SshClient[5ffead27]-nio2-thread-13 id=29 state=WAITING type=Daemon



My application to handle hundreds of sessions like that, and I afraid it is
no feasible in 13 threads are gonna created per session.



I Looked for selector based solution in MINA SSHD and did not find any.



Anybody can direct me towards a solution in MINA SSHD area?







Rgds,

David Herschler Shvo



-- 
Rgds,
David Herschler Shvo

Reply via email to