- PM2 is Process Manager for Node.js applications.
- PM2 has built-in Load Balancer.
- PM2 keeps node.js applications running on production server.
- PM2 automatically restart server if it crashes or close, without any downtime.
- PM2 helps you to manage application logging, monitoring, and clustering.
Following are some very useful commands
npm install pm2 --save
pm2 start app.js
PM2 cluster mode allows Node.js applications to be scaled accross all CPUs available, without any changes in code.
pm2 start app.js -i max
pm2 stop all
Read more in details about Source: PM2