Record every new journey

Java Process Manager 2 (PM2) Cheat Sheet

0 577

Java Process Manager 2 (PM2)

PM2 is a production java process manager for Node.js applications with a built-in load balancer. It allows you to keep applications alive forever, to reload them without downtime and to facilitate common system admin tasks.

#Installation

 

#Start an app

 

# Specify an app name

 

# Watch and Restart app when files change

 

# Set memory threshold for app reload

 

# Specify log file

 

# Pass extra arguments to the script

# Delay between automatic restarts

 

# Prefix logs with time

 

# Do not auto restart app

 

# Specify cron for forced restart

 

# Attach to application log

 

Read Also >>

#Managing processes

 

#List managed applications

 

#Display logs

 

#Terminal Based Dashboard

 

#Cluster mode

 

#Restart application on changes

 

#Updating PM2

 

CheatSheet Java Process Manager 2

 

# Fork mode

 

# Cluster mode

 

# Listing

 

# Logs

 

# Actions

 

# Misc

So, more understand about java process manager? Hoe you will understand how to use java process manager 2 or PM2

You might also like
Leave A Reply

Your email address will not be published.