I am trying to get help on Reddit & Discord as well and this is what I posted there...
tl;dr Linode & Vultr CPUs go to 100% while running pm2 without --watch... Any ideas why? i think it is kubernetes as that seems to be top 1 & 2 items and I didn't install it so it seems like pm2 uses kubernetes.
So, I have narrowed down my 100% CPU usage to pm2 using kubernetes: https://kubertnetes.io/
I updated PM2 just now and it is still at 100%. If I uninstall PM2, My CPU usage drops down to 20-30%. This originally happened on my Vultr VPS so one of the reasons why I left is because they couldn't/wouldn't help me fix this and I was trying to uninstall kubernetes and couldn't. So, I moved to Linode. No issues with linode until installing pm2 and running anything without the --watch command. It makes no sense.
If I uninstall pm2, my CPU usage drops to 20-30% from 104-106%. I don't want to get charged for this extra CPU usage. :/
I've done exhaustive google searches (and will continue until this is fixed). I have updated pm2. I have tried updating kubernetes or uninstalling it but I always get some version of this:
root@localhost:~# kubeadm upgrade node
Command 'kubeadm' not found, but can be installed with:
snap install kubeadm
I confirm it. Please help.
In one day later it's is 10 to 14%,
but now is in the most time it's 70% to 100%.
I sleep in one day later and in the next day when i use my computer i observed it.
What's going wrong?
When running 1
pm2 start
command CPU usage jumps from 15% to 60-100%+ usage. I was running 5 all night and it consistently stayed around 104%.How could we reproduce this issue?
Run 1 of the
pm2 start
commands and check CPU usage.Supporting information
Please copy/paste the above report in your issue on https://github.com/Unitech/pm2/issues
I am trying to get help on Reddit & Discord as well and this is what I posted there... tl;dr Linode & Vultr CPUs go to 100% while running pm2 without
--watch
... Any ideas why? i think it is kubernetes as that seems to be top 1 & 2 items and I didn't install it so it seems like pm2 uses kubernetes. So, I have narrowed down my 100% CPU usage to pm2 using kubernetes: https://kubertnetes.io/I updated PM2 just now and it is still at 100%. If I uninstall PM2, My CPU usage drops down to 20-30%. This originally happened on my Vultr VPS so one of the reasons why I left is because they couldn't/wouldn't help me fix this and I was trying to uninstall kubernetes and couldn't. So, I moved to Linode. No issues with linode until installing pm2 and running anything without the
--watch
command. It makes no sense.If I uninstall pm2, my CPU usage drops to 20-30% from 104-106%. I don't want to get charged for this extra CPU usage. :/
I've done exhaustive google searches (and will continue until this is fixed). I have updated pm2. I have tried updating kubernetes or uninstalling it but I always get some version of this:
Any idea why this is?
Here is my htop: https://prnt.sc/ugbxo9
Also, this is my pm2 list... as you can see all of these show 0% CPU usage. https://prnt.sc/ugc2lb