Overview
PM2 is a process manager for Node.js applications. It runs as a background daemon that starts your apps, keeps them running, restarts them if they crash, and collects their logs. It is installed from npm and controlled from the command line, with commands such as "pm2 start app.js". The project says it supports Node.js 18 and later, and Bun.
Its cluster mode runs several copies of a Node.js app and spreads incoming traffic between them, and a reload command restarts them one at a time so the app stays available. PM2 can generate a startup script for the server's init system (systemd, launchd and several others) so saved processes come back after a reboot. Other features include watch-and-reload during development, restarting an app that exceeds a memory limit, a module system (log rotation is added this way), a deployment workflow, and pm2-runtime for use inside Docker containers.
The process manager is open source under the AGPL 3.0 licence, and the maintainers say other licences are available on request. The same company sells PM2 Plus and PM2 Enterprise, a hosted monitoring dashboard with alerts and exception tracking. The pricing page says PM2 Plus has no free plan.
Categories
Features
- Keeps Node.js apps running and restarts them after crashes
- Cluster mode that load-balances across several processes
- Reload command for restarts without downtime
- Generates boot scripts for systemd, launchd and other init systems
- Log collection, with rotation available as an add-on module
- Watch-and-reload and automatic restart at a memory limit
- pm2-runtime for running apps inside containers
- Built-in deployment workflow
- Optional paid PM2 Plus monitoring dashboard
Privacy
See the official privacy policy. PM2 runs on your own server and needs no account; the optional PM2 Plus dashboard requires a PM2.io account and sends monitoring data to that service.
Pros & Cons
Pros
- The process manager is free and open source
- Works on Linux, macOS and Windows
- One tool covers restarts, clustering, logs and boot scripts
- No account needed unless you want the hosted dashboard
Cons
- Hosted monitoring (PM2 Plus) is paid, with no free plan
- AGPL licence may not suit every company, though other licences are offered on request
- Log rotation is not built in and must be installed as a module
- Bun users without Node.js need an extra symlink step
Community Reviews (0)
No written reviews yet — be the first to rate this tool.
Similar Tools
-
Runs JavaScript outside the browser as a server-side runtime.
Open Source No Signup Windows Linux -
Installs and manages JavaScript packages and dependencies.
Free Web -
Installs and switches between multiple Node.js versions.
Open Source No Signup Linux macOS