title: Does node.js --max-old-space-size include forked processes?
body: <p>I'm working on resolving out-of-memory errors in a node.js application and using the <code>--max-old-space-size</code> parameter when launching <code>node</code> to set the size to 4096MB, the maximum accoring to <a href="https://github.com/nodejs/node-v0.x-archive/wiki/FAQ" rel="noreferrer">https://github.com/nodejs/node-v0.x-archive/wiki/FAQ</a> (I can't find simular documentation for the current version of node.js).</p>
  
  <p>What I'm wondering is if that 4096MB limit is imposed on everything used by that single node.js script, or if each process is allocated 4096MB?  </p>
  
  <p>In other words, if I <code>fork()</code> additional processes from inside the script, does each forked process get 4096MB to work with, or do they all draw from the same 4096MB pool?</p>