Favicon of pm2

pm2

Production process manager for Node.js applications featuring cluster mode, load balancing, zero-downtime reloads, and comprehensive monitoring capabilities.

PM2 is a production process manager designed specifically for Node.js and Bun applications. It keeps your applications running continuously, handles automatic restarts on crashes, and provides powerful tools for managing application lifecycle in production environments.

Key capabilities include:

  • Cluster Mode: Automatically distribute traffic across multiple processes to leverage all available CPU cores, increasing performance by up to 10x on multi-core systems
  • Zero-Downtime Reloads: Update applications without interrupting service using hot reload functionality
  • Process Management: Start, stop, restart, and delete applications with simple commands
  • Built-in Load Balancing: Distribute HTTP/TCP/UDP queries efficiently across running instances
  • Comprehensive Monitoring: Track application health, system vitals, and performance metrics directly from the terminal
  • Log Management: Centralized log viewing with support for JSON, formatted, and raw output formats
  • Startup Scripts: Automatically restart applications and PM2 after server reboots with support for systemd, upstart, launchd, and rc.d
  • Container Ready: Includes pm2-runtime for seamless Docker integration
  • Multi-Platform: Stable support for Linux, macOS, and Windows with compatibility for Node.js 12.X and newer, plus Bun

Getting started is straightforward—install globally via npm and launch any application with a single command. PM2 daemonizes your app, monitors it continuously, and keeps it alive forever. The tool is battle-tested with over 1800 automated tests and trusted by thousands of developers worldwide.

Features

JSON outputScriptable

Media

Pros

5
  • Manages Node.js applications in production
  • Supports cluster mode for load balancing
  • Enables zero-downtime reloads
  • Provides comprehensive monitoring capabilities
  • Generates startup scripts for persistence

Related tools

Categories:

Share:

Auto-fetched .

Recent releases

Similar to pm2

Favicon

 

  
 
Favicon

 

  
 
Favicon