PM2
We use pm2 as our app manager on our dev/prod servers. Commands:
> pm2 list> pm2 restart <id> where <id> is the app id from pm2 list
Something we’ve seen happen twice in past 6 months is the apps either have memory leaks or garbage collection just doesnt happen and the entire servers memory gets used up, basically hosing the server causing it to need a reboot. Taking the time to do a heap analysis would be a fun project when time isn’t a limited resource. The solution for now - just restart a few of the apps on a weekly basis.