<?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: NameNode heapsize is bigger then it should be. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NameNode-heapsize-is-bigger-then-it-should-be/m-p/174904#M137167</link>
    <description>&lt;P&gt;I feel this is not a case, since fsimage size is 19Gb for about 8,000,000 blocks - which is too much. I have updated the question with more info.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Oct 2017 02:41:21 GMT</pubDate>
    <dc:creator>Oleg_Hmelnits</dc:creator>
    <dc:date>2017-10-27T02:41:21Z</dc:date>
    <item>
      <title>NameNode heapsize is bigger then it should be.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NameNode-heapsize-is-bigger-then-it-should-be/m-p/174902#M137165</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I am running HDP-2.3.4.0 and Ambari 2.2.0.0&lt;/P&gt;&lt;P&gt;The NameNode heap size is set to 24Gb where 22Gb are used. This is very strange since the total blocks number is 7,796,546.&lt;/P&gt;&lt;P&gt;The fsimage size is 19Gb. Here is the jmap output for namenode JVM &lt;/P&gt;&lt;P&gt;-bash-4.2$ /usr/java/jdk1.7.0_67/bin/jmap -histo 35350 | head&lt;/P&gt;&lt;P&gt;#num     #instances         #bytes  class name &lt;/P&gt;&lt;P&gt;---------------------------------------------- &lt;/P&gt;&lt;P&gt;   1:     175738748    14270581184  [B &lt;/P&gt;&lt;P&gt;   2:     193636970    13941861840  org.apache.hadoop.hdfs.server.namenode.INodeFileAttributes$SnapshotCopy &lt;/P&gt;&lt;P&gt;   3:     193636970    10843670320  org.apache.hadoop.hdfs.server.namenode.snapshot.FileDiff &lt;/P&gt;&lt;P&gt;   4:      15675953     2867785824  [Ljava.lang.Object; &lt;/P&gt;&lt;P&gt;   5:             4     1761607776  [Lorg.apache.hadoop.util.LightWeightGSet$LinkedElement; &lt;/P&gt;&lt;P&gt;   6:       7798931      748697376  org.apache.hadoop.hdfs.server.namenode.INodeFile &lt;/P&gt;&lt;P&gt;   7:       7799784      499186176  org.apache.hadoop.hdfs.server.blockmanagement.BlockInfoContiguous&lt;/P&gt;&lt;P&gt;According to the best practices, we could use about 9 or 10Gb heap size. But this is not the case.&lt;/P&gt;&lt;P&gt;What could impact the heap size and how could I troubleshot this?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 22:59:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NameNode-heapsize-is-bigger-then-it-should-be/m-p/174902#M137165</guid>
      <dc:creator>Oleg_Hmelnits</dc:creator>
      <dc:date>2017-10-26T22:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: NameNode heapsize is bigger then it should be.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NameNode-heapsize-is-bigger-then-it-should-be/m-p/174903#M137166</link>
      <description>&lt;P&gt;It is likely the process has not hit an allocation failure yet so GC has not kicked in. This is perfectly normal. If you want the heap usage to be lower then you can reduce the heap allocation.&lt;/P&gt;&lt;P&gt;Alternatively you can trigger GC quicker by adding something like &lt;EM&gt;-XX:CMSInitiatingOccupancyFraction=70 -XX:+UseCMSInitiatingOccupancyOnly&lt;/EM&gt; to your heap options.&lt;/P&gt;&lt;P&gt;However it's probably best to just follow our suggested heap configuration and let the Java runtime do the rest.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.2/bk_command-line-installation/content/configuring-namenode-heap-size.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.2/bk_command-line-installation/content/configuring-namenode-heap-size.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2017 02:12:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NameNode-heapsize-is-bigger-then-it-should-be/m-p/174903#M137166</guid>
      <dc:creator>ArpitAgarwal</dc:creator>
      <dc:date>2017-10-27T02:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: NameNode heapsize is bigger then it should be.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NameNode-heapsize-is-bigger-then-it-should-be/m-p/174904#M137167</link>
      <description>&lt;P&gt;I feel this is not a case, since fsimage size is 19Gb for about 8,000,000 blocks - which is too much. I have updated the question with more info.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2017 02:41:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NameNode-heapsize-is-bigger-then-it-should-be/m-p/174904#M137167</guid>
      <dc:creator>Oleg_Hmelnits</dc:creator>
      <dc:date>2017-10-27T02:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: NameNode heapsize is bigger then it should be.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NameNode-heapsize-is-bigger-then-it-should-be/m-p/174905#M137168</link>
      <description>&lt;P&gt;Try clearing up some snapshots. You probably have a ton of deleted files retained for snapshots.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Oct 2017 01:16:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NameNode-heapsize-is-bigger-then-it-should-be/m-p/174905#M137168</guid>
      <dc:creator>ArpitAgarwal</dc:creator>
      <dc:date>2017-10-28T01:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: NameNode heapsize is bigger then it should be.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NameNode-heapsize-is-bigger-then-it-should-be/m-p/174906#M137169</link>
      <description>&lt;P&gt;Thank you! Yes, we have a lot of snapshots. &lt;/P&gt;</description>
      <pubDate>Sat, 28 Oct 2017 01:19:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NameNode-heapsize-is-bigger-then-it-should-be/m-p/174906#M137169</guid>
      <dc:creator>Oleg_Hmelnits</dc:creator>
      <dc:date>2017-10-28T01:19:29Z</dc:date>
    </item>
  </channel>
</rss>

