Tuesday, 2 May 2017

How to run node in forever with --max-old-space-size

I would like to run a node app with forever and with an increased --max-old-space-size.

This my current package.json start script:

"start": "forever --verbose --uid \"project-name\" --watch --watchDirectory ./routes ./bin/www"

And it works correctly.

I tried to run it with an increased space size like this:

"start": "forever --verbose --uid \""project-name\" --watch --watchDirectory ./routes -c \"./bin/www --stack_size=8192 --max-old-space-size=8192\""

But it doesn't work. Could someone please let me know the correct command?



via adelriosantiago

No comments:

Post a Comment