[ 
https://issues.apache.org/jira/browse/HADOOP-1130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484749
 ] 

Philippe Gassmann commented on HADOOP-1130:
-------------------------------------------

The closeAll() method should also remove ClientFinalizer from shutdown hooks to 
avoid the ClassLoader (so all Class(es) loaded by the ClassLoader) that have 
loaded hadoop being kept in memory.

> Remove unused ClientFinalizer in DFSClient
> ------------------------------------------
>
>                 Key: HADOOP-1130
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1130
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.10.1, 0.11.0, 0.11.1, 0.11.2, 0.12.0
>            Reporter: Philippe Gassmann
>            Priority: Critical
>         Attachments: HADOOP-1130.diff
>
>
> The ClientFinalizer shutdown hook is not used.
> This can lead to severe memory leaks if you use the DFSClient in a dynamic 
> class loading context (such as in a webapp) as the DFSClient.ClientFinalizer 
> class is retained in the memory by the shutdown hook. It retains also the 
> current ClassLoader and thus all classes loaded by the ClassLoader. (Threads 
> put in the shutdown hook are never garbage collected).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to