Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13234

Remove renew configuration instance in ConfiguredFailoverProxyProvider and reduce memory footprint for client

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • fs, ha, hdfs-client
    • None

    Description

      The memory footprint of #DFSClient is very considerable in some special scenario since there are many #Configuration instances and occupy much memory resource (In an extreme case, org.apache.hadoop.conf.Configuration occupies over 600MB we meet under HDFS Federation an HA with QJM and there are dozens of NameNodes). I think some new Configuration instance is not necessary. Such as #ConfiguredFailoverProxyProvider initialization.

        public ConfiguredFailoverProxyProvider(Configuration conf, URI uri,
            Class<T> xface, HAProxyFactory<T> factory) {
          this.xface = xface;
          this.conf = new Configuration(conf);
          ......
        }
      

      Attachments

        1. HDFS-13234.001.patch
          1.0 kB
          Xiaoqiao He

        Activity

          People

            Unassigned Unassigned
            hexiaoqiao Xiaoqiao He
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: