title: Getting "Cannot allocate memory" when running Puppet agent
body: <p>I'm getting the following errors when I run "puppet agent -t" :</p>
  
  <pre><code>Cannot allocate memory - /bin/uname -s
  ...
  Cannot allocate memory - /sbin/arp -an
  ...
  Cannot allocate memory - /bin/uname -s
  ...
  Could not retrieve kernelversion: private method `split' called for nil:NilClass
  Could not retrieve kernelmajversion: private method `split' called for nil:NilClass
  ...
  </code></pre>
  
  <p>The full error is here : <a href="http://pastebin.com/fhjqrgBn" rel="nofollow">http://pastebin.com/fhjqrgBn</a></p>
  
  <p>When I run the command <code>/bin/uname -s</code> manually I get the result whithout any error.</p>
  
  <p>free command shows this :</p>
  
  <pre><code>             total       used       free     shared    buffers     cached
  Mem:        609600     160688     448912          0       5716      35432
  -/+ buffers/cache:     119540     490060
  Swap:            0          0          0
  </code></pre>
  
  <p>Puppet bug ? what do you think ?</p>