You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2013/12/03 22:04:36 UTC

[jira] [Resolved] (SSHD-253) Improve performance of auth and idle timeout checking

     [ https://issues.apache.org/jira/browse/SSHD-253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved SSHD-253.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 0.10.0
         Assignee: Guillaume Nodet

https://git-wip-us.apache.org/repos/asf?p=mina-sshd.git;a=commit;h=85d11f90da5b05e6274cad620d86c469f3c388a2

> Improve performance of auth and idle timeout checking
> -----------------------------------------------------
>
>                 Key: SSHD-253
>                 URL: https://issues.apache.org/jira/browse/SSHD-253
>             Project: MINA SSHD
>          Issue Type: Improvement
>            Reporter: Michael Heemskerk
>            Assignee: Guillaume Nodet
>            Priority: Minor
>             Fix For: 0.10.0
>
>
> SshServer performs auth and idle timeout checks by scheduling a Runnable to disconnect the session when the timeout occurs. Every time new data is received, the task is canceled and a new Runnable is scheduled.
> As a result ScheduledExecutorService.schedule is called very frequently and pops up in the profiling hotspots.  I've created an alternative implementation that uses a single thread to periodically checks (once every second) all active sessions whether they've timed out. 
> The performance impact of this change depends on the type of SSH usage. For operations that transfer a lot of data in a short time, the improvement is significant (about 8% in my test).
> Pull request: https://github.com/apache/mina-sshd/pull/1



--
This message was sent by Atlassian JIRA
(v6.1#6144)