I used to start my node application with:
NODE_ENV=production forever start index.js
However, as suggested in this question , I would like to start node using -nouse-idle-notification. I also found this tuning article - max-old-space-size, etc. Unfortunately, no one I ask may seem to determine if the flag is really accepted by the node, so I'm not sure how to determine the correctness of my forever syntax.
Also, I cannot accept both arguments forever ...
For example, if I use this
NODE_ENV=production forever start --max-old-space-size=8192 --nouse-idle-notification index.js
I get "perpetual usage information" as if I were trying to start forever without transferring the .js file to run (for example, just by typing "forever"). If I put the flags in front of the "start" command, this seems to start, but again I'm not sure how to determine if the flags were accepted ...
Can someone help me with the correct syntax?
source share