<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: The heap memory usage of NameNode is much higher than expected in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/The-heap-memory-usage-of-NameNode-is-much-higher-than/m-p/382399#M244572</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Thank you very much for your answer. I will try to adjust the allocation of heap memory. In addition, I would like to ask how the conclusion of using 1GB of memory for every 1 million blocks was drawn? Or is there a more precise calculation method that can lead to such a conclusion?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jan 2024 08:48:44 GMT</pubDate>
    <dc:creator>Meepoljd</dc:creator>
    <dc:date>2024-01-18T08:48:44Z</dc:date>
    <item>
      <title>The heap memory usage of NameNode is much higher than expected</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-heap-memory-usage-of-NameNode-is-much-higher-than/m-p/382261#M244523</link>
      <description>&lt;P&gt;Hi, I have a Hadoop 3.1.1 cluster and recently I found that the NameNode heap memory usage in the cluster is very high. I saw 629973631 file objects in the cluster through WebUi, so according to my calculations, it should occupy no more than 90GB of memory, right? Why is the current memory usage consistently above 140GB? Is this related to me enabling erasure codes?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Meepoljd_0-1705395074316.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39437i229F6F155AA94DCD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Meepoljd_0-1705395074316.png" alt="Meepoljd_0-1705395074316.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 08:52:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-heap-memory-usage-of-NameNode-is-much-higher-than/m-p/382261#M244523</guid>
      <dc:creator>Meepoljd</dc:creator>
      <dc:date>2024-01-16T08:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: The heap memory usage of NameNode is much higher than expected</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-heap-memory-usage-of-NameNode-is-much-higher-than/m-p/382312#M244544</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/94989"&gt;@Meepoljd&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The file and block metadata consumes the NameNode heap. Can you share how did your calculation?&lt;/P&gt;&lt;P&gt;Per our docs:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.8/hdfs-overview/topics/hdfs-sizing-namenode-heap-memory.html" target="_blank"&gt;https://docs.cloudera.com/cdp-private-cloud-base/7.1.8/hdfs-overview/topics/hdfs-sizing-namenode-heap-memory.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the file count should kept below 300m files. Also the same page suggests that &lt;STRONG&gt;approximately&lt;/STRONG&gt; 150 bytes are needed for each namespace object, I assume you did your calculation based on that. The real NN heap consumption varies with the path lengths, ACL counts, replication factors, snapshots, operational load, etc. As such in our other page&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.8/hdfs-overview/topics/hdfs-examples-namenode-heap-memory.html" target="_blank"&gt;https://docs.cloudera.com/cdp-private-cloud-base/7.1.8/hdfs-overview/topics/hdfs-examples-namenode-heap-memory.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we suggest to allocate rather a bigger heap size, 1 GB heap for 1 million blocks, which would be ~320 GB in your case.&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Best regards, Miklos&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 09:07:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-heap-memory-usage-of-NameNode-is-much-higher-than/m-p/382312#M244544</guid>
      <dc:creator>mszurap</dc:creator>
      <dc:date>2024-01-17T09:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: The heap memory usage of NameNode is much higher than expected</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-heap-memory-usage-of-NameNode-is-much-higher-than/m-p/382398#M244571</link>
      <description>&lt;P&gt;Thank you very much for your answer. I will try to adjust the allocation of heap memory. In addition, I would like to ask how the conclusion of using 1GB of memory for every 1 million blocks was drawn? Or is there a more precise calculation method that can lead to such a conclusion?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 08:48:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-heap-memory-usage-of-NameNode-is-much-higher-than/m-p/382398#M244571</guid>
      <dc:creator>Meepoljd</dc:creator>
      <dc:date>2024-01-18T08:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: The heap memory usage of NameNode is much higher than expected</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-heap-memory-usage-of-NameNode-is-much-higher-than/m-p/382399#M244572</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you very much for your answer. I will try to adjust the allocation of heap memory. In addition, I would like to ask how the conclusion of using 1GB of memory for every 1 million blocks was drawn? Or is there a more precise calculation method that can lead to such a conclusion?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 08:48:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-heap-memory-usage-of-NameNode-is-much-higher-than/m-p/382399#M244572</guid>
      <dc:creator>Meepoljd</dc:creator>
      <dc:date>2024-01-18T08:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: The heap memory usage of NameNode is much higher than expected</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-heap-memory-usage-of-NameNode-is-much-higher-than/m-p/382417#M244578</link>
      <description>&lt;P&gt;As far as I know this is more of an empirical best practice. As mentioned it cannot be exactly calculated since there are some variable factors (filename / path lengths, acl counts, etc) which change from environment to environment.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 13:52:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-heap-memory-usage-of-NameNode-is-much-higher-than/m-p/382417#M244578</guid>
      <dc:creator>mszurap</dc:creator>
      <dc:date>2024-01-18T13:52:13Z</dc:date>
    </item>
  </channel>
</rss>

