Languages

Node.js - FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory

8 points
Asked by:
Bess
601

Why my Node.js throws?

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory

 

1 answer
1 points
Answered by:
Bess
601

You Node.js application requres more RAM.

By default Node.js use 512MB, so change it using:

node --max-old-space-size=1024 ./script.js

 

Btw. upgrade your node to 16.0.0 or later if it is possible.

Related topics

  1. Node.js throws error: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

See also

  1. Node - switch Node.js version under Debian / Ubuntu (mvn switching)

0 comments Add comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join