Skip to main content
Back to Tools
Web Tools

PM2 Config Generator

Generate PM2 ecosystem.config.js files for Node.js process management. Configure fork/cluster mode, instances, memory limits, watch mode, env vars, log paths, and restart policies. Export as JS, JSON, or YAML. Runs entirely in your browser — your data never leaves your machine.

pm2 nodejs process-manager devops deployment config

Published May 31, 2026

All interactive tools run entirely in your browser. Your data never leaves your device.

How It Works

Configure your Node.js application settings — execution mode, instances, environment variables, restart policies — and the tool generates a complete PM2 ecosystem config file in your preferred format.

Features

  • 3 output formats: JavaScript (module.exports), JSON, YAML
  • Execution modes: fork and cluster with instance count control
  • Environment management: separate dev and production env vars
  • Watch mode: file watching with ignore patterns
  • Restart policies: autorestart, max restarts, min uptime, cron schedules
  • Log configuration: custom log paths, error/output separation, merge logs
  • Multi-app support: configure multiple apps in a single ecosystem file
  • 5 examples: simple app, cluster API, Next.js production, microservices, watch dev
  • Private: runs entirely in the browser — no data transmitted

Use Cases

  • Setting up PM2 for Node.js production deployments
  • Configuring cluster mode for multi-core utilization
  • Managing multiple microservices with a single config
  • Setting up development watch mode with PM2