I am using PM2 to run my node app as a service. My Node app is RAM Hungry so it consumes around 300 to 800mb of ram depending on traffic. My DigitalOcean droplet has 1GB RAM.
Sometimes out of the blue, my app disappears from running services and I see nothing when I give command pm2 list
As far as I know, pm2 should take care of such crashes itself and restart the app when ever such crash happens, but it doesn't restart it instead do anything.
I am now looking for some solution that can auto restart my app when it crashes, and I have to use pm2 to use it a service.