PM2 is a CLI process manager for Node.js applications with a built-in load balancer
pm2 is a process manager for Node apps with a built-in load-balancer.
pm2 is perfect when you need to spread your stateless NodeJS code across all CPUs available on a server, to keep all processes alive forever and to 0s reload them. pm2 reloads scripts when they crash, can manage multiple processes at once, and all without downtime.
It is an NPM CLI application that runs in io.js and node.js on Windows, Mac OSX, and Linux.
Main features
- Builtin load-balancer (using the native cluster module)
- Script daemonization
- 0s downtime reload for Node
- Startup scripts for Ubuntu and CentOS
- Stop unstable process (avoid infinite loop)
- Monitoring in console
- HTTP API
- Remote control and real time interface API
Questions can be tagged with "pm2" for problems with running applications using pm2.
For more information: