talira

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 APIplan not known
Has a command line toolplan not known
Takes pluginsplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what PM2 does.

  1. Supervisor A process control system for Unix

Compare PM2 with the top 3