You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Walter Su (JIRA)" <ji...@apache.org> on 2015/08/14 12:24:45 UTC

[jira] [Created] (HDFS-8896) DataNode object isn't GCed when shutdown, because it has GC root in ShutdownHookManager

Walter Su created HDFS-8896:
-------------------------------

             Summary: DataNode object isn't GCed when shutdown, because it has GC root in ShutdownHookManager
                 Key: HDFS-8896
                 URL: https://issues.apache.org/jira/browse/HDFS-8896
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: test
            Reporter: Walter Su
            Assignee: Walter Su
            Priority: Minor


The anonymous {{Thread}} object created in {{ShutdownHookManager}} is a GC root.
screenshot_1 shows how DN object be traced to the GC root.

It's not a problem in production.
It's a problem in test, especially when MiniDFSCluster starts/shutdowns many DNs, which could cause {{OutOfMemoryError}}.
screenshot_2 shows many DN objects are not GCed when run the test of HDFS-8838.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)