Skip to content

Instantly share code, notes, and snippets.

@mountaindude
Created August 24, 2017 18:14
Show Gist options
  • Save mountaindude/8180479c4582f3fb19fd33e7f4ff297e to your computer and use it in GitHub Desktop.
Save mountaindude/8180479c4582f3fb19fd33e7f4ff297e to your computer and use it in GitHub Desktop.
Node.js and PM2 memory limits
# Node
node --max-old-space-size=1024 app.js # 1Gb
# PM2
pm2 start app.js --node-args="--max-old-space-size=1024" # 1Gb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment