“FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed — process out of memory
This error occurs when the memory allocated for the execution application is less than the required memory when run application.
“
Memory issue can be avoid
“512 mb By default the memory limit in Node. js is 512 mb, to solve this issue you need to increasing the memory limit use command —- max-old-space-size .
It can be avoid the memory limit issue.”
–max-old-space-size=
node –max-old-space-size=1024 index.js #increase to 1gb
node –max-old-space-size=2048 index.js #increase to 2gb
node –max-old-space-size=3072 index.js #increase to 3gb
node –max-old-space-size=4096 index.js #increase to 4gb
node –max-old-space-size=5120 index.js #increase to 5gb
node –max-old-space-size=6144 index.js #increase to 6gb
node –max-old-space-size=7168 index.js #increase to 7gb
node –max-old-space-size=8192 index.js #increase to 8gb
On a machine with 2GB of memory I would probably set –max-old-space-size to about 1.5GB to leave some memory for other uses and avoid swapping.