Skip to content Skip to sidebar Skip to footer

Meteor App Ran With Pm2 FATAL ERROR: CALL_AND_RETRY_LAST Allocation Failed - JavaScript Heap Out Of Memory

I am using meteor. I build my app with meteor build. Then I try to run it with pm2 MONGO_URL=mongodb://localhost:27017/btctestdb PORT=3000 ROOT_URL=http://myurl METEOR_SETTINGS=$(c

Solution 1:

Running it like this works. just added --node-args="--max-old-space-size=6144"

MONGO_URL=mongodb://localhost:27017/btctestdb PORT=3000 ROOT_URL=http://app.backtocart.co METEOR_SETTINGS=$(cat /home/app/settings.json) pm2 start main.js --node-args="--max-old-space-size=6144" &


Post a Comment for "Meteor App Ran With Pm2 FATAL ERROR: CALL_AND_RETRY_LAST Allocation Failed - JavaScript Heap Out Of Memory"