<?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: Docker Sandbox HDP2.5 memory problem in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Docker-Sandbox-HDP2-5-memory-problem/m-p/166179#M41550</link>
    <description>&lt;P&gt;From the docker docs I get that docker containers must actually be limited to not take all mem available on the host OS. This is confusing. &lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2016 16:39:28 GMT</pubDate>
    <dc:creator>jknulst</dc:creator>
    <dc:date>2016-09-23T16:39:28Z</dc:date>
    <item>
      <title>Docker Sandbox HDP2.5 memory problem</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Docker-Sandbox-HDP2-5-memory-problem/m-p/166178#M41549</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have insufficient memory on my Docker Sandbox. Hiveserver2 can not start because of it:&lt;/P&gt;&lt;PRE&gt;OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00007f74b44d3000, 3183083520, 0) failed; error='Cannot allocate memory' (errno=12) # # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (malloc) failed to allocate 3183083520 bytes for committing reserved memory.&lt;/PRE&gt;&lt;P&gt;I tried allocating 8GB to the container by altering the start_sandbox.sh script:&lt;/P&gt;&lt;PRE&gt;docker run -v hadoop:/hadoop -m 8G --name sandbox --hostname "sandbox.hortonworks.com" --privileged -d \&lt;/PRE&gt;&lt;P&gt;But still I have only 2GB in the container:&lt;/P&gt;&lt;PRE&gt;top - 22:58:30 up 18 min,  2 users,  load average: 0.26, 1.47, 1.25
Tasks:  39 total,   1 running,  38 sleeping,   0 stopped,   0 zombie
Cpu(s):  5.1%us,  3.5%sy,  0.0%ni, 67.8%id, 23.6%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   2047164k total,  1973328k used,    73836k free,      400k buffers
Swap:  4093948k total,  3181344k used,   912604k free,    22904k cached


  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
  608 hdfs      20   0  982m 132m 5372 S 25.0  6.6   0:07.20 java
  606 hdfs      20   0 1022m 146m 5304 S  3.7  7.3   0:12.34 java
&lt;/PRE&gt;&lt;P&gt;How to solve this?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2016 05:59:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Docker-Sandbox-HDP2-5-memory-problem/m-p/166178#M41549</guid>
      <dc:creator>jknulst</dc:creator>
      <dc:date>2016-09-23T05:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Docker Sandbox HDP2.5 memory problem</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Docker-Sandbox-HDP2-5-memory-problem/m-p/166179#M41550</link>
      <description>&lt;P&gt;From the docker docs I get that docker containers must actually be limited to not take all mem available on the host OS. This is confusing. &lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2016 16:39:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Docker-Sandbox-HDP2-5-memory-problem/m-p/166179#M41550</guid>
      <dc:creator>jknulst</dc:creator>
      <dc:date>2016-09-23T16:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Docker Sandbox HDP2.5 memory problem</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Docker-Sandbox-HDP2-5-memory-problem/m-p/166180#M41551</link>
      <description>&lt;P&gt;How much memory you got on Host machine?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2016 16:52:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Docker-Sandbox-HDP2-5-memory-problem/m-p/166180#M41551</guid>
      <dc:creator>nitinshk77</dc:creator>
      <dc:date>2016-09-23T16:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Docker Sandbox HDP2.5 memory problem</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Docker-Sandbox-HDP2-5-memory-problem/m-p/166181#M41552</link>
      <description>&lt;P&gt;@Jasper,&lt;/P&gt;&lt;P&gt;You can use,&lt;/P&gt;&lt;P&gt;docker run -v hadoop:/hadoop --memory="8g" --name sandbox --hostname "sandbox.hortonworks.com"--privileged -d \&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;docker run -v hadoop:/hadoop -m 8g --name sandbox --hostname "sandbox.hortonworks.com"--privileged -d \&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2016 17:13:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Docker-Sandbox-HDP2-5-memory-problem/m-p/166181#M41552</guid>
      <dc:creator>nitinshk77</dc:creator>
      <dc:date>2016-09-23T17:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Docker Sandbox HDP2.5 memory problem</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Docker-Sandbox-HDP2-5-memory-problem/m-p/166182#M41553</link>
      <description>&lt;P&gt;Here is some extra env info:&lt;/P&gt;&lt;PRE&gt;jknulst$ docker info 
Containers: 1
 Running: 1
 Paused: 0
 Stopped: 0
Images: 1
Server Version: 1.12.1
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 10
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge null host overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 4.4.20-moby
Operating System: Alpine Linux v3.4
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 1.952 GiB
Name: moby
ID: NWBP:4ERH:CUCP:IF5Y:CY23:M2EQ:O7L7:BBPN:A5IA:HWO7:7T3A:OHFP
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 23
 Goroutines: 39
 System Time: 2016-09-25T14:27:37.828975604Z
 EventsListeners: 1
No Proxy: *.local, 169.254/16
Registry: &lt;A href="https://index.docker.io/v1/"&gt;https://index.docker.io/v1/&lt;/A&gt;
Insecure Registries:
 127.0.0.0/8&lt;/PRE&gt;&lt;P&gt;Please note the 'Total Memory: 1.952 GiB' this tells me the limit is somewhere on the Docker level, not the container level.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2016 21:32:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Docker-Sandbox-HDP2-5-memory-problem/m-p/166182#M41553</guid>
      <dc:creator>jknulst</dc:creator>
      <dc:date>2016-09-25T21:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Docker Sandbox HDP2.5 memory problem</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Docker-Sandbox-HDP2-5-memory-problem/m-p/166183#M41554</link>
      <description>&lt;P&gt;OK got it now,&lt;/P&gt;&lt;P&gt;The restriction was on the Docker host service level. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="7966-screen-shot-2016-09-25-at-43327-pm.png" style="width: 782px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20347i6F617881FD5E52F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="7966-screen-shot-2016-09-25-at-43327-pm.png" alt="7966-screen-shot-2016-09-25-at-43327-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Just shift the Memory slider and then you should be fine.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 11:14:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Docker-Sandbox-HDP2-5-memory-problem/m-p/166183#M41554</guid>
      <dc:creator>jknulst</dc:creator>
      <dc:date>2019-08-18T11:14:42Z</dc:date>
    </item>
  </channel>
</rss>

