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 2014/04/04 09:59:15 UTC

[jira] [Commented] (SSHD-308) Possible Memory Leak in org.apache.sshd.client.sftp.DefaultSftpClient

    [ https://issues.apache.org/jira/browse/SSHD-308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13959745#comment-13959745 ] 

Guillaume Nodet commented on SSHD-308:
--------------------------------------

Good catch, it should just be matter of replacing the messages.get(id) with messages.remove(id) in DefaultSftpClient#receive().

> Possible Memory Leak in org.apache.sshd.client.sftp.DefaultSftpClient
> ---------------------------------------------------------------------
>
>                 Key: SSHD-308
>                 URL: https://issues.apache.org/jira/browse/SSHD-308
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 0.10.1
>         Environment: Windows 7, Java 7
>            Reporter: Irwan Hendra
>         Attachments: memoryleak.png
>
>
> Hi I think DefaultSftpClient is not releasing Buffer objects stored in HashMap messages after .close() is called or after any files download are completed, therefore making the HashMap an ever increasing HashMap.
> I have heapdump, how can I attach it here? sorry kinda new to this system, thanks



--
This message was sent by Atlassian JIRA
(v6.2#6252)