Advanced production process manager for Node.js
open sourceAGPL-3.0self-hostablefree
PM2 is a daemon process manager that keeps applications online 24/7. It runs Node.js and Bun applications, and also Python, Ruby or any binary on your PATH, restarts them when they crash, and reloads them without downtime. Cluster mode starts a process per CPU core and load-balances HTTP, TCP and UDP traffic between them. It manages logs, watches files and reloads on change, restarts a process that passes a memory limit, generates startup scripts so apps come back after a reboot, deploys from a deployment workflow, has a terminal monitoring dashboard and a module system, and works in containers and on PaaS hosts. It runs on Linux, macOS and Windows with Node.js 18+ or Bun 1+. Its makers, Keymetrics, also sell PM2.io, a web monitoring service for PM2 apps with exception tracking, custom metrics, alerts and an MCP endpoint for AI assistants.
Problems it solves
- keep my Node.js app running after it crashes or the server reboots
- reload a Node.js app in production with zero downtime
- use all CPU cores for my Node.js server without writing cluster code
- manage and rotate logs for several Node.js processes on one server
- run a Python script or binary as a background service that restarts on failure
Features
- automatic restarts and 24/7 daemon
- cluster mode with built-in load balancer
- zero-downtime reloads
- log management
- watch and reload
- max memory reload
- startup scripts
- deployment workflow
- terminal monitoring
- module system
View 2 more
- container integration and PaaS compatibility
- runs Python, Ruby and other binaries too
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Takes plugins | plan not known |
| Has official SDKs | plan not known |
Alternatives
The same job
These do what PM2 does.
- Supervisor A process control system for Unix
