commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Boettcher (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (VFS-142) Clear ThreadData after all streams are closed, fixes a memory leak
Date Tue, 22 Apr 2014 20:08:17 GMT

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

Ryan Boettcher commented on VFS-142:
------------------------------------

ThreadLocal actually stores it's data in the Thread itself, I don't think your patch covers
the whole problem.  Even when the ThreadLocal content is set to null it may not remove the
reference in the Thread.

> Clear ThreadData after all streams are closed, fixes a memory leak
> ------------------------------------------------------------------
>
>                 Key: VFS-142
>                 URL: https://issues.apache.org/jira/browse/VFS-142
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Adam Heath
>         Attachments: fix_ThreadData-clear.patch
>
>
> After all streams are closed in FileContentThreadData, clear the ThreadLocal.



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

Mime
View raw message