New Dec 29, 2024

Killing and Restarting pm2

More Front-end Bloggers All from Zell Liew View Killing and Restarting pm2 on zellwk.com

(Hey, we're having problems showing images in RSS right now, so if you want a better reading experience, consider viewing this article online [here](https://zellwk.com//blog/killing-and-restarting-pm2. We hope to fix this soon!).

I encountered a strange error with pm2 that has the following properties:

  1. pm2 list displays nothing even though processes should be running
  2. After restarting a couple of projects, pm2 list still displays nothing
  3. Running pm2 list hogs the server and creates a spike (see picture below).

Killing pm2, node, and reinstalling the latest version of pm2 fixed the problem for me.

pkill -9 PM2
pkill -9 node
npm i -g pm2@latest`

After you have done these things, restart each of your applications and pm2 should run fine again.

Scroll to top