process

PM2 – production process manager

PM2 is a production process manager designed primarily for Node.js and Bun applications.

It keeps applications running, automatically restarts failed processes and provides a command-line interface for managing application lifecycles.

The software includes a built-in load balancer, zero-downtime reloads, process monitoring, log management and startup-script generation. Although focused on JavaScript runtimes, PM2 can also launch Python and Ruby scripts, shell commands and executable binaries.

This is free and open source software.

Key Features

  • Starts, stops, restarts and removes managed applications.
  • Automatically restarts applications after crashes.
  • Supports Node.js, Bun and other executable programs.
  • Provides a built-in load balancer for Node.js applications.
  • Runs multiple application instances in cluster mode.
  • Supports zero-downtime application reloads.
  • Offers terminal-based process and resource monitoring.
  • Provides consolidated and configurable log management.
  • Generates startup scripts for systemd, OpenRC and other init systems.
  • Restores saved process lists after a system restart.
  • Includes a production-oriented runtime for containers.
  • Supports ecosystem configuration files for managing multiple applications.

Website: github.com/Unitech/pm2
Support:
Developer: Alexandre Strzelewicz
License: GNU Affero General Public License v3.0

PM2 in action
Click image for full size

PM2 is written in JavaScript. Learn JavaScript with our recommended free books and free tutorials.


Related Software

Terminal-Based Process Managers
PM2Production runtime for keeping Node.js and Bun applications online
PueueQueue and schedule long-running shell commands in the background
OvermindRun Procfile-based applications through tmux with clean output
Process ComposeSchedule and orchestrate non-containerized application stacks
proxSupervise applications with live metrics, logs and a polished TUI
ProcmanProcfile dashboard with live logs and interactive terminals
OxMgrLightweight Rust supervisor with health checks and crash recovery
OveritallControl Procfile services and explore logs from one terminal
proctmuxRun and control long-lived commands from a searchable TUI
gobDaemon-backed CLI and TUI for developers and coding agents

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted