pidusage
pidusage copied to clipboard
cpu value returns zero
Hi, I'm using your library on a Oracle Cloud VM.Standard.A1.Flex server, with Canonical-Ubuntu-22.04 OS.
Unfortunately, it does not return the "cpu" value, and for every child process the result is "cpu":0
.
There are no errors in the logfile and the other metrics appear to display correctly.
Is this a known compatibility issue?
Hi, I am having a similar issue.
Originally I mentioned the issue on a module that uses your library: https://github.com/bartbutenaers/node-red-contrib-process-resources/issues/1#issuecomment-1493780871 Node Red for reference here: https://discourse.nodered.org/t/node-red-kept-restarting-upon-git-push/77181
The issue shows in my log like this:
3 Apr 08:06:09 - [red] Uncaught Exception:
3 Apr 08:06:09 - [error] TypeError: Cannot read properties of null (reading 'cpu')
at /data/node_modules/node-red-contrib-process-resources/process_resources.js:61:75
at Array.forEach (
https://github.com/bartbutenaers/node-red-contrib-process-resources put a workaround in place, but the author suggested that you check in your library.
Please let us know if you need more details.
feel free to add the Red compatibility to this project
There seems to be a bug here still, see thread in https://github.com/Unitech/pm2/issues/5182.