Unitech / pm2

Node.js Production Process Manager with a built-in Load Balancer.
https://pm2.keymetrics.io/docs/usage/quick-start/
Other
41.53k stars 2.62k forks source link

Ram and CPU are not shown #5671

Open MattiOfHell opened 1 year ago

MattiOfHell commented 1 year ago

What's going wrong?

If I send pm2 ls or pm2 describe the cpu and memory are not shown

How could we reproduce this issue?

pm2 ls

Supporting information

--- Daemon logs --------------------------------------------
/root/.pm2/pm2.log last 20 lines:
PM2        | 2023-09-06T14:56:03: PM2 log: App [biscotto:31] starting in -fork mode-
PM2        | 2023-09-06T14:56:03: PM2 log: App [biscotto:31] online
PM2        | 2023-09-06T14:56:04: PM2 error: Error caught while calling pidusage
PM2        | 2023-09-06T14:56:04: PM2 error: TypeError: One of the pids provided is invalid
PM2        | 2023-09-06T14:56:05: PM2 error: Error caught while calling pidusage
PM2        | 2023-09-06T14:56:05: PM2 error: TypeError: One of the pids provided is invalid
PM2        | 2023-09-06T14:56:05: PM2 error: Error caught while calling pidusage
PM2        | 2023-09-06T14:56:05: PM2 error: TypeError: One of the pids provided is invalid
PM2        | 2023-09-06T14:56:06: PM2 error: Error caught while calling pidusage
PM2        | 2023-09-06T14:56:06: PM2 error: TypeError: One of the pids provided is invalid
PM2        | 2023-09-06T14:56:06: PM2 log: App [biscotto2:36] exited with code [0] via signal [SIGINT]
PM2        | 2023-09-06T14:56:06: PM2 log: App [biscotto2:36] starting in -fork mode-
PM2        | 2023-09-06T14:56:06: PM2 log: App [biscotto2:36] online
PM2        | 2023-09-06T14:56:06: PM2 log: App [biscotto:31] exited with code [0] via signal [SIGINT]
PM2        | 2023-09-06T14:56:06: PM2 log: App [biscotto:31] starting in -fork mode-
PM2        | 2023-09-06T14:56:06: PM2 log: App [biscotto:31] online
PM2        | 2023-09-06T14:56:07: PM2 error: Error caught while calling pidusage
PM2        | 2023-09-06T14:56:07: PM2 error: TypeError: One of the pids provided is invalid
PM2        | 2023-09-06T14:56:07: PM2 error: Error caught while calling pidusage
PM2        | 2023-09-06T14:56:07: PM2 error: TypeError: One of the pids provided is invalid
MattiOfHell commented 1 year ago

?

BridgeSenseDev commented 1 year ago

Try removing your .pm2 folder and re-running pm2 start, worked for me