You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "uttamgupta (via GitHub)" <gi...@apache.org> on 2025/11/19 00:00:04 UTC
[I] SSH client creates 5 threads while connecting to host. [mina-sshd]
uttamgupta opened a new issue, #853:
URL: https://github.com/apache/mina-sshd/issues/853
Is there a way to configure NIO threads when we connect to a host? I have a use case where I need to connect to 64 hosts from a single client. However, this process takes an excessive amount of CPU time.
sshd-SshClient[2200ad1]-timer-thread-1
sshd-SshClient[2200ad1]-nio2-resume-thread-1
sshd-SshClient[2200ad1]-nio2-thread-1
sshd-SshClient[2200ad1]-nio2-thread-2
sshd-SshClient[2200ad1]-nio2-thread-3
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org
Re: [I] SSH client creates 5 threads while connecting to host. [mina-sshd]
Posted by "tomaswolf (via GitHub)" <gi...@apache.org>.
tomaswolf commented on issue #853:
URL: https://github.com/apache/mina-sshd/issues/853#issuecomment-3576254970
There is `CoreModuleProperties.NIO_WORKERS`, and if that is not sufficient, you could instantiate an `IoServiceFactory` with your own executor factory.
But are you sure the problem is the number of IO threads? Connecting to a host involves a key exchange, which involves cryptographic operations, and authentication, which may involve cryptographic operations (for instance for public-key authentication). Perhaps the bottleneck is in these cryptographic operations.
Maybe you can get some speed-up by having multiple application threads handling the SSH sessions, so that key exchange and authentication for different sessions can run concurrently.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org