What is PM2 and what does it do

Zahid Bashir Khan
3 min readJul 7, 2024

PM2 (Process Manager 2) is a powerful process management tool specifically designed for Node.js applications. It is essential for managing and monitoring applications in production environments, ensuring high availability, performance, and ease of use. This guide will cover what PM2 is, what it does, and how you can use it to manage your Node.js applications.

Table of Contents

  1. What is PM2?
  2. Key Features of PM2
  3. Installing PM2
  4. Starting and Stopping Applications
  5. Monitoring Applications
  6. Log Management
  7. Clustering
  8. Zero Downtime Reloads
  9. Startup Scripts
  10. Configuration Files
  11. Common Commands
  12. Conclusion

1. What is PM2?

PM2 is a production process manager for Node.js applications. It allows you to keep your applications running continuously, manage them seamlessly, and monitor their performance in real time. PM2 is particularly useful for applications that require high availability and reliability.

2. Key Features of PM2

  • Process Management: Start, stop, restart…

--

--