[
https://issues.apache.org/jira/browse/SSHD-793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16319493#comment-16319493
]
Li Fangning edited comment on SSHD-793 at 1/10/18 1:10 AM:
-----------------------------------------------------------
Hi, Goldstein
We found this problem because my customer deployed our sshd server behind the
load-balanced device, and the device performs a service availability check
every second. After a few days, our sshd server runs out of memory.
We analyzed the LB device's checking behavior and wrote code to reproduce the
problem, that is the [^SshClientTest.java].
After we ran [^SshClientTest.java] for a few seconds and stopped, we waited for
a whole night and [^SshdServerTest.java]'s memory was still not released. So we
think this is a memory leak problem.
We tried to change the code of
{{org.apache.sshd.common.io.nio2.Nio2Acceptor.java}}, and seemingly solved the
problem.
Please help review the changes:
!changes.png!
Best regards.
was (Author: lfn):
Hi, Goldstein
We found this problem because my customer deployed our sshd server behind the
load-balanced device, and the device performs a service availability check
every second. After a few days, our sshd server runs out of memory.
We analyzed the LB device's checking behavior and wrote code to reproduce the
problem, that is the [^SshClientTest.java].
After we ran [^SshClientTest.java] for a few seconds and stopped, we waited for
a whole night and [^SshdServerTest.java]'s memory was still not released. So we
think this is a memory leak problem.
We tried to change the code of
{{org.apache.sshd.common.io.nio2.Nio2Acceptor.java}}, and seemingly solved the
problem.
Please help review the changes:
!changes.png!
Best regards.
> Continuously connecting to sshd server lead to memory leaks
> -----------------------------------------------------------
>
> Key: SSHD-793
> URL: https://issues.apache.org/jira/browse/SSHD-793
> Project: MINA SSHD
> Issue Type: Bug
> Affects Versions: 1.7.0
> Environment: Linux
> Reporter: Li Fangning
> Attachments: SshClientTest.java, SshdServerTest.java, changes.png
>
>
> Run the attachments [^SshdServerTest.java] and [^SshClientTest.java],
> [^SshdServerTest.java]'s memory will continue to rise and lead to
> {{OutOfMemory}} error.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)