mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SSHD-308) Possible Memory Leak in org.apache.sshd.client.sftp.DefaultSftpClient
Date Fri, 04 Apr 2014 07:59:15 GMT

    [ 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)

Mime
View raw message