{"action":"created","issue":{"url":"https://api.github.com/repos/Unitech/pm2/issues/3708","repository_url":"https://api.github.com/repos/Unitech/pm2","labels_url":"https://api.github.com/repos/Unitech/pm2/issues/3708/labels{/name}","comments_url":"https://api.github.com/repos/Unitech/pm2/issues/3708/comments","events_url":"https://api.github.com/repos/Unitech/pm2/issues/3708/events","html_url":"https://github.com/Unitech/pm2/issues/3708","id":331245772,"node_id":"MDU6SXNzdWUzMzEyNDU3NzI=","number":3708,"title":"bug: cpu display on pm2 3.0 is weird","user":{"login":"Eywek","id":6900054,"node_id":"MDQ6VXNlcjY5MDAwNTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/6900054?v=4","gravatar_id":"","url":"https://api.github.com/users/Eywek","html_url":"https://github.com/Eywek","followers_url":"https://api.github.com/users/Eywek/followers","following_url":"https://api.github.com/users/Eywek/following{/other_user}","gists_url":"https://api.github.com/users/Eywek/gists{/gist_id}","starred_url":"https://api.github.com/users/Eywek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eywek/subscriptions","organizations_url":"https://api.github.com/users/Eywek/orgs","repos_url":"https://api.github.com/users/Eywek/repos","events_url":"https://api.github.com/users/Eywek/events{/privacy}","received_events_url":"https://api.github.com/users/Eywek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":22,"created_at":"2018-06-11T15:47:29Z","updated_at":"2018-06-12T17:51:58Z","closed_at":null,"author_association":"NONE","body":"## What's going wrong?\r\n\r\n```\r\n┌─────────────────────┬────┬─────────┬───────┬────────┬─────────┬────────┬───────────┬────────────┬────────┬──────────┐\r\n│ App name            │ id │ mode    │ pid   │ status │ restart │ uptime │ cpu       │ mem        │ user   │ watching │\r\n├─────────────────────┼────┼─────────┼───────┼────────┼─────────┼────────┼───────────┼────────────┼────────┼──────────┤\r\n│ AXM-INTERACTION-APP │ 11 │ cluster │ 46589 │ online │ 0       │ 85m    │ 2.05%     │ 380.0 MB   │ ubuntu │ disabled │\r\n│ AXM-INTERACTION-APP │ 20 │ cluster │ 46835 │ online │ 0       │ 85m    │ 1.65625%  │ 361.6 MB   │ ubuntu │ disabled │\r\n│ AXM-INTERACTION-APP │ 19 │ cluster │ 46811 │ online │ 0       │ 85m    │ 2.21875%  │ 302.6 MB   │ ubuntu │ disabled │\r\n│ AXM-INTERACTION-APP │ 4  │ cluster │ 46389 │ online │ 0       │ 85m    │ 2.365625% │ 356.1 MB   │ ubuntu │ disabled │\r\n│ AXM-INTERACTION-APP │ 18 │ cluster │ 46791 │ online │ 0       │ 85m    │ 1.928125% │ 367.4 MB   │ ubuntu │ disabled │\r\n```\r\n\r\nCPU usage is not properly displayed. It should be around 40%-70%.\r\n\r\n## Supporting information\r\n\r\n```\r\n===============================================================================\r\n--- PM2 REPORT (Mon Jun 11 2018 17:45:05 GMT+0200 (CEST)) ---------------------\r\n===============================================================================\r\n--- Daemon -------------------------------------------------\r\npm2d version         : 3.0.0-alpha1\r\nnode version         : 8.11.1\r\nnode path            : /usr/local/bin/pm2\r\nargv                 : /usr/bin/node,/usr/local/share/.config/yarn/global/node_modules/pm2/lib/Daemon.js\r\nargv0                : node\r\nuser                 : ubuntu\r\nuid                  : 1000\r\ngid                  : 1000\r\nuptime               : 85min\r\n===============================================================================\r\n--- CLI ----------------------------------------------------\r\nlocal pm2            : 3.0.0-alpha1\r\nnode version         : 8.11.1\r\nnode path            : /usr/local/bin/pm2\r\nargv                 : /usr/bin/node,/usr/local/bin/pm2,report\r\nargv0                : node\r\nuser                 : ubuntu\r\nuid                  : 1000\r\ngid                  : 1000\r\n===============================================================================\r\n--- System info --------------------------------------------\r\narch                 : x64\r\nplatform             : linux\r\ntype                 : Linux\r\ncpus                 : Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz\r\ncpus nb              : 32\r\nfreemem              : 121331007488\r\ntotalmem             : 135081730048\r\nhome                 : /home/ubuntu\r\n===============================================================================\r\n```\r\n\r\n\r\n## Solution\r\n\r\nMaybe this commit is guilty https://github.com/soyuka/pidusage/commit/88972d8cd38d4137b70261a830af22283b69c57c "},"comment":{"url":"https://api.github.com/repos/Unitech/pm2/issues/comments/396677504","html_url":"https://github.com/Unitech/pm2/issues/3708#issuecomment-396677504","issue_url":"https://api.github.com/repos/Unitech/pm2/issues/3708","id":396677504,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjY3NzUwNA==","user":{"login":"simonepri","id":3505087,"node_id":"MDQ6VXNlcjM1MDUwODc=","avatar_url":"https://avatars3.githubusercontent.com/u/3505087?v=4","gravatar_id":"","url":"https://api.github.com/users/simonepri","html_url":"https://github.com/simonepri","followers_url":"https://api.github.com/users/simonepri/followers","following_url":"https://api.github.com/users/simonepri/following{/other_user}","gists_url":"https://api.github.com/users/simonepri/gists{/gist_id}","starred_url":"https://api.github.com/users/simonepri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonepri/subscriptions","organizations_url":"https://api.github.com/users/simonepri/orgs","repos_url":"https://api.github.com/users/simonepri/repos","events_url":"https://api.github.com/users/simonepri/events{/privacy}","received_events_url":"https://api.github.com/users/simonepri/received_events","type":"User","site_admin":false},"created_at":"2018-06-12T17:51:58Z","updated_at":"2018-06-12T17:51:58Z","author_association":"NONE","body":"@vmarchaud thank you for the explanation!\r\n@wallet77 The consumption should be per process, so I immagine that if the process has more than 1 thread the consumption will be cumulative of the work of all the threads."}}
{"actor":{"display_login":"simonepri"}}