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

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -