(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:
pm2 list
displays nothing even though processes should be running- After restarting a couple of projects,
pm2 list
still displays nothing - 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.