keymetrics / pm2-plus-tech-questions

http://docs.keymetrics.io/docs/pages/faq-troubleshooting/
27 stars 3 forks source link

pm2 only reports cores/mem/cpu-architecture/etc when running under su #310

Open JasonGloverNZ opened 1 year ago

JasonGloverNZ commented 1 year ago

I have pm2 on a bunch of different machines. All Ubuntu ec2 boxes. I use pm2.io as the UI I've noticed that some of the servers can't report how much memory/cpu etc the host has.

I was bemused but I spotted the pattern eventually. Most of the hosts are setup to run pm2 as the "ubuntu" user, but 2 of them have been installed and run under "su"

Is this normal behavior to only see the mem/cores when running pm2 in su space? Seems a bit excessive.