<?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: Getting out of memory (on 8 core, 16MB, 4 node cluster), with simple HDFS operations in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-out-of-memory-on-8-core-16MB-4-node-cluster-with/m-p/182730#M80603</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;....I just realized you had asked for the log file for this. Apologies for missing that. I have attached. &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/83415-hs-err-pid4314log.txt"&gt;hs-err-pid4314log.txt&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jul 2018 10:09:58 GMT</pubDate>
    <dc:creator>steve_kiaie</dc:creator>
    <dc:date>2018-07-25T10:09:58Z</dc:date>
    <item>
      <title>Getting out of memory (on 8 core, 16MB, 4 node cluster), with simple HDFS operations</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-out-of-memory-on-8-core-16MB-4-node-cluster-with/m-p/182727#M80600</link>
      <description>&lt;P&gt;E.g. &lt;/P&gt;&lt;P&gt;hdfs dfs -put const.txt /qtests/file3 &lt;/P&gt;&lt;P&gt;(file is &amp;lt;1MB)&lt;/P&gt;&lt;P&gt;Error is: &lt;/P&gt;&lt;P&gt;Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000f3400000, 123731968, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 123731968 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /home/centos/hs_err_pid4314.log&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Max Heap size on data nodes is 1GB. &lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 08:34:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-out-of-memory-on-8-core-16MB-4-node-cluster-with/m-p/182727#M80600</guid>
      <dc:creator>steve_kiaie</dc:creator>
      <dc:date>2018-07-12T08:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Getting out of memory (on 8 core, 16MB, 4 node cluster), with simple HDFS operations</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-out-of-memory-on-8-core-16MB-4-node-cluster-with/m-p/182728#M80601</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/83456/skiaie.html" nodeid="83456"&gt;@Steve Kiaie&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Do you have enough free memory available at the OS? (during crash)  And there is not additional JVM options set globally?&lt;/P&gt;&lt;PRE&gt;# free -m
# echo $JAVA_OPTIONS
# echo $HADOOP_OPTS
# echo $HADOOP_CLIENT_OPTS&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Also this error / crash indicates that it you might have set the system OS memory overcommit setting was 2&lt;BR /&gt;&lt;BR /&gt;Please check this file &lt;STRONG&gt;"/proc/sys/vm/overcommit_memory" &lt;/STRONG&gt; This switch knows 3 different settings 0 /1 /2:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;0:&lt;/STRONG&gt; The Linux kernel is free to overcommit memory (this is the default), a heuristic algorithm is applied to figure out if enough memory is available.&lt;BR /&gt;&lt;STRONG&gt;1:&lt;/STRONG&gt; The Linux kernel will always overcommit memory, and never check if enough memory is available. This increases the risk of out-of-memory situations, but also improves memory-intensive workloads.&lt;BR /&gt;&lt;STRONG&gt;2: &lt;/STRONG&gt;The Linux kernel will not overcommit memory, and only allocate as much memory as defined in overcommit_ratio.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Please try to change this setting as a superuser:&lt;/P&gt;&lt;PRE&gt;# echo 0 &amp;gt; /proc/sys/vm/overcommit_memory&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Also for more detailed analysis can you please attach the JVM crash file&lt;STRONG&gt; "/home/centos/hs_err_pid4314.log"&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 08:44:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-out-of-memory-on-8-core-16MB-4-node-cluster-with/m-p/182728#M80601</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-07-12T08:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting out of memory (on 8 core, 16MB, 4 node cluster), with simple HDFS operations</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-out-of-memory-on-8-core-16MB-4-node-cluster-with/m-p/182729#M80602</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;on the named node free-m gives&lt;/P&gt;&lt;P&gt;        total    used     free      shared  buff/cache   available &lt;/P&gt;&lt;P&gt;         14878       14088   250         198       540            325 &lt;/P&gt;&lt;P&gt;Swap:             0           0           0&lt;/P&gt;&lt;P&gt;On a data node: &lt;/P&gt;&lt;P&gt;              total   used   free  shared  buff/cache   available &lt;/P&gt;&lt;P&gt;         14878        5085         872          24          8920            9434 &lt;/P&gt;&lt;P&gt;Swap:             0           0           0&lt;/P&gt;&lt;P&gt;/proc/sys/vm/overcommit_memory was set to 0 &lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;# echo $JAVA_OPTIONS&lt;/LI&gt;&lt;LI&gt;# echo $HADOOP_OPTS&lt;/LI&gt;&lt;LI&gt;# echo $HADOOP_CLIENT_OPTS&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;were all undefined &lt;/P&gt;&lt;P&gt;the log shows: &lt;/P&gt;&lt;P&gt;---------------  S Y S T E M  ---------------
OS:CentOS Linux release 7.2.1511 (Core)
uname:Linux 3.10.0-327.22.2.el7.x86_64 #1 SMP Thu Jun 23 17:05:11 UTC 2016 x86_64
libc:glibc 2.17 NPTL 2.17
rlimit: STACK 8192k, CORE 0k, NPROC 59369, NOFILE 4096, AS infinity
load average:2.56 1.96 2.06
/proc/meminfo:
MemTotal:       15235812 kB
MemFree:          157172 kB
MemAvailable:     109724 kB
Buffers:               0 kB
Cached:           219468 kB
SwapCached:            0 kB
Active:         14636256 kB
Inactive:          76244 kB
Active(anon):   14626136 kB
Inactive(anon):    67536 kB
Active(file):      10120 kB
Inactive(file):     8708 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:               412 kB
Writeback:             0 kB
AnonPages:      14496064 kB
Mapped:            40920 kB
Shmem:            198124 kB
Slab:             130892 kB
SReclaimable:      55204 kB
SUnreclaim:        75688 kB
KernelStack:       55232 kB
PageTables:        57976 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     7617904 kB
Committed_AS:   27413956 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      167920 kB
VmallocChunk:   34359566840 kB
HardwareCorrupted:     0 kB
AnonHugePages:   8243200 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:       94196 kB
DirectMap2M:     3051520 kB
DirectMap1G:    14680064 kB&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 09:26:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-out-of-memory-on-8-core-16MB-4-node-cluster-with/m-p/182729#M80602</guid>
      <dc:creator>steve_kiaie</dc:creator>
      <dc:date>2018-07-12T09:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting out of memory (on 8 core, 16MB, 4 node cluster), with simple HDFS operations</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-out-of-memory-on-8-core-16MB-4-node-cluster-with/m-p/182730#M80603</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;....I just realized you had asked for the log file for this. Apologies for missing that. I have attached. &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/83415-hs-err-pid4314log.txt"&gt;hs-err-pid4314log.txt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 10:09:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-out-of-memory-on-8-core-16MB-4-node-cluster-with/m-p/182730#M80603</guid>
      <dc:creator>steve_kiaie</dc:creator>
      <dc:date>2018-07-25T10:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Getting out of memory (on 8 core, 16MB, 4 node cluster), with simple HDFS operations</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-out-of-memory-on-8-core-16MB-4-node-cluster-with/m-p/182731#M80604</link>
      <description>&lt;P&gt;This issue was likely caused by installing all master components (Named Node, RM, Hive Server 2, Druid, etc) on a single node.  Redeploying a cluster with the master components distributed across 3 nodes resulted in a more stable cluster -- no more out of memory errors. &lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 09:00:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-out-of-memory-on-8-core-16MB-4-node-cluster-with/m-p/182731#M80604</guid>
      <dc:creator>steve_kiaie</dc:creator>
      <dc:date>2018-08-06T09:00:57Z</dc:date>
    </item>
  </channel>
</rss>

