Skip to content

Instantly share code, notes, and snippets.

@ebta
Created November 27, 2021 09:16
Show Gist options
  • Save ebta/0cb334d75334f052945d6afe29dae363 to your computer and use it in GitHub Desktop.
Save ebta/0cb334d75334f052945d6afe29dae363 to your computer and use it in GitHub Desktop.
NodeJs Application Tips

Problem FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

Solution Increase memory usage for your app, for example increase to 8GB

node --max-old-space-size=8192 app.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment