title: Container is running beyond virtual memory limits
body: <p>When I do rhadoop example, below errors are occurred.</p>
  
  <p>is running beyond virtual memory limits. Current usage: 121.2 MB of 1 GB physical memory used; 2.1 GB of 2.1 GB virtual memory used. Killing container.</p>
  
  <p>Container killed on request. Exit code is 143</p>
  
  <p>Container exited with a non-zero exit code 143</p>
  
  <p>hadoop streaming failed with error code 1</p>
  
  <p>How can I fix it?</p>
  
  <p>My hadoop settings.</p>
  
  <p><strong>mapred-site.xml</strong></p>
  
  <pre><code>&lt;configuration&gt;
          &lt;property&gt;
                  &lt;name&gt;mapreduce.framework.name&lt;/name&gt;
                  &lt;value&gt;yarn&lt;/value&gt;
          &lt;/property&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p><strong>yarn-site.xml</strong></p>
  
  <pre><code>&lt;configuration&gt;
  
  &lt;!-- Site specific YARN configuration properties --&gt;
          &lt;property&gt;
                  &lt;name&gt;yarn.nodemanager.aux-services&lt;/name&gt;
                  &lt;value&gt;mapreduce_shuffle&lt;/value&gt;
          &lt;/property&gt;
          &lt;property&gt;
                  &lt;name&gt;yarn.nodemanager.aux-services.mapreduce_shuffle.class&lt;/name&gt;
                  &lt;value&gt;org.apache.hadoop.mapred.ShuffleHandler&lt;/value&gt;
          &lt;/property&gt;
          &lt;property&gt;
                  &lt;name&gt;yarn.nodemanager.local-dirs&lt;/name&gt;
                  &lt;value&gt;/usr/local/hadoop-2.7.3/data/yarn/nm-local-dir&lt;/value&gt;
          &lt;/property&gt;
          &lt;property&gt;
                  &lt;name&gt;yarn.resourcemanager.fs.state-store.uri&lt;/name&gt;
                  &lt;value&gt;/usr/local/hadoop-2.7.3/data/yarn/system/rmstore&lt;/value&gt;
          &lt;/property&gt;
          &lt;property&gt;
                  &lt;name&gt;yarn.resourcemanager.hostname&lt;/name&gt;
                  &lt;value&gt;localhost&lt;/value&gt;
          &lt;/property&gt;
          &lt;property&gt;
                  &lt;name&gt;yarn.web-proxy.address&lt;/name&gt;
                  &lt;value&gt;0.0.0.0:8089&lt;/value&gt;
          &lt;/property&gt;
  &lt;/configuration&gt;
  </code></pre>