My website is using 70% to 100% of CPU, but i don't have any modifications, it's ocurred a 3 days ago.
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 43.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
In one day later it's is 0,5 to 10%,
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.
Sometimes it's 14%, but in more time it's grather then 70%, it's a teste server,
I'm the only one who connects there
My print
https://ibb.co/sCtV04X
Report
--- PM2 report ----------------------------------------------------------------
Date : Fri Oct 02 2020 10:22:54 GMT-0300 (Brasilia Standard Time)
===============================================================================
--- Daemon -------------------------------------------------
pm2d version : 4.5.0
node version : 10.7.0
node path : /opt/bitnami/nodejs/lib/node_modules/pm2/bin/pm2
argv : /opt/bitnami/nodejs/bin/node,/opt/bitnami/nodejs/lib/node_modules/pm2/lib/Daemon.js
argv0 : node
user : root
uid : 0
gid : 0
uptime : 87min
===============================================================================
--- CLI ----------------------------------------------------
local pm2 : 4.5.0
node version : 10.7.0
node path : not found
argv : /opt/bitnami/nodejs/bin/node,/opt/bitnami/nodejs/bin/pm2,report
argv0 : node
user : root
uid : 0
gid : 0
===============================================================================
--- System info --------------------------------------------
arch : x64
platform : linux
type : Linux
cpus : Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz
cpus nb : 1
freemem : 276402176
totalmem : 1040691200
home : /home/bitnami
===============================================================================
--- PM2 list -----------------------------------------------
┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
│ id │ name │ mode │ ↺ │ status │ cpu │ memory │
├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
│ 0 │ qmc-em-acao-homol… │ cluster │ 2 │ online │ 14.6% │ 162.6mb │
│ 2 │ qmc-em-acao-homol… │ cluster │ 11 │ online │ 15.9% │ 34.4mb │
│ 1 │ reg-zica-homolog │ cluster │ 38 │ online │ 15.9% │ 74.5mb │
│ 3 │ reg-zica-homolog │ cluster │ 34 │ online │ 14.6% │ 81.8mb │
└────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
===============================================================================
--- Daemon logs --------------------------------------------
/home/bitnami/.pm2/pm2.log last 20 lines:
PM2 | 2020-10-02T10:18:29: PM2 log: App name:reg-zica-homolog id:3 disconnected
PM2 | 2020-10-02T10:18:29: PM2 log: App [reg-zica-homolog:3] exited with code [0] via signal [SIGINT]
PM2 | 2020-10-02T10:18:29: PM2 log: App [reg-zica-homolog:3] starting in -cluster mode-
PM2 | 2020-10-02T10:18:33: PM2 log: App [reg-zica-homolog:3] online
PM2 | 2020-10-02T10:18:54: PM2 log: App name:reg-zica-homolog id:1 disconnected
PM2 | 2020-10-02T10:18:54: PM2 log: App [reg-zica-homolog:1] exited with code [0] via signal [SIGINT]
PM2 | 2020-10-02T10:18:54: PM2 log: App [reg-zica-homolog:1] starting in -cluster mode-
PM2 | 2020-10-02T10:18:57: PM2 log: App [reg-zica-homolog:1] online
PM2 | 2020-10-02T10:21:28: PM2 log: App name:reg-zica-homolog id:3 disconnected
PM2 | 2020-10-02T10:21:28: PM2 log: App [reg-zica-homolog:3] exited with code [0] via signal [SIGINT]
PM2 | 2020-10-02T10:21:28: PM2 log: App [reg-zica-homolog:3] starting in -cluster mode-
PM2 | 2020-10-02T10:21:31: PM2 log: App [reg-zica-homolog:3] online
PM2 | 2020-10-02T10:21:55: PM2 log: App name:reg-zica-homolog id:1 disconnected
PM2 | 2020-10-02T10:21:55: PM2 log: App [reg-zica-homolog:1] exited with code [0] via signal [SIGINT]
PM2 | 2020-10-02T10:21:55: PM2 log: App [reg-zica-homolog:1] starting in -cluster mode-
PM2 | 2020-10-02T10:21:58: PM2 log: App [reg-zica-homolog:1] online
PM2 | 2020-10-02T10:22:31: PM2 log: App name:qmc-em-acao-homolog id:2 disconnected
PM2 | 2020-10-02T10:22:31: PM2 log: App [qmc-em-acao-homolog:2] exited with code [1] via signal [SIGINT]
PM2 | 2020-10-02T10:22:31: PM2 log: App [qmc-em-acao-homolog:2] starting in -cluster mode-
PM2 | 2020-10-02T10:22:34: PM2 log: App [qmc-em-acao-homolog:2] online
Please copy/paste the above report in your issue on https://github.com/Unitech/pm2/issues
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the supplied PM2 report and daemon logs, especially the cluster-process disconnects, exits, and restarts. Reproduce or isolate the sustained CPU usage using the reported PM2 4.5.0, Node.js 10.7.0, Linux, and one-CPU environment; done means the cause is identified and the behavior can be verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100