node.js - How to set memory limit to NodeJS running with forever -
i'm running node js process through forever below:
sudo forever start -o out.log -e error.log myserver.js
i want change memory limit of nodejs server below when i'm running purely node.
node --max-old-space-size=512 myserver.js
how can same when i'm running forever? there way 'forever start --max-old-space-size=512'
you can pass node options changing command (which defaults "node").
so example:
sudo forever start -c "node --max_old_space_size=512" -o out.log -e error.log myserver.js
Comments
Post a Comment