title: How to set pass max-old-space-size memory limit to Nodejs running with memory-usage package
body: <p>I am using <a href="https://www.npmjs.com/package/memory-usage" rel="noreferrer">https://www.npmjs.com/package/memory-usage</a> to see how my Node application uses the memory, by running 'memory-usage app.js' in MACOS terminal. However, after some testing, it always crash at 1.4GB. </p>
  
  <p>In normal nodejs command, to set the memory limit higher, I could just use 'node --max-old-space-size=8192 app.js'. However running 'memory-usage --max-old-space-size=8192 app.js' won't work.</p>
  
  <p>My Mac has following RAM details:</p>
  
  <p>BANK 0/DIMM0:</p>
  
  <p>Size: 4 GB
    Type: DDR3
    Speed:    1867 MHz</p>
  
  <p>BANK 1/DIMM0:</p>
  
  <p>Size: 4 GB
    Type: DDR3
    Speed:    1867 MHz</p>
  
  <p>What is the maximum size I can go for my Nodejs application and how to set that with memory-usage?</p>
  
  <p>Thank you.</p>