title: How to limit CPU and memory usage for node processes
body: <p>I would like to <a href="https://github.com/TryGhost/Ghost#developer-install-from-git" rel="nofollow noreferrer">install a Ghost Blog on a shared server via GitHub</a>. During the installation, I need to run <code>npm install, grunt init</code> and <code>grunt prod</code>. My host provides 500 MB memory usage, if a process uses more than 600 MB it kills it.</p>
  <p>Therefore I need an option to limit the memory usage of these processes because they all need more than 500 MB of memory!</p>
  <p>I tried to run the processes with <code>--max-old-space-size=450</code> but it does not seem to work.</p>
  <p>I would be glad if anyone could provide me a link to a tutorial or documentation about running node processes with options.</p>
  <p>Thank you!</p>
  <p><strong>UPDATE:</strong>
  Since I’ve posted this the installation of Ghost has changed completely.</p>