Node-RED-docker causes regular CPU spikes
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- docker, node.js
- Ambito
- devops, infrastructure
Direzione di ricerca
Inizia riproducendo il problema con un container nodered/node-red:latest (2.1.3) nuovo e monitoralo usando docker stats, come descritto nel report. Confronta il comportamento con e senza flussi attivi e librerie di terze parti; il lavoro è completato quando è stata identificata la causa del 30-minute CPU spike ricorrente e confermato che non si verifica più.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I have recently noticed that a closely monitored docker container using image nodered/node-red:latest (2.1.3) shows, on the processor core (or thread ?) it uses, CPU spikes up to 100% every 30 minutes. My monitoring happens by polling docker stats regularly and graphing it over time. This also occurs if the container is fresh, i.e. with no active flows, no third-party libraries installed, no custom code, etc.

A fuller writeup, with many helpful comments from community members, is available on the Node-RED Forum. When reading through it, bear in mind that the suspicion that Node-RED crashed my system was false.
A quick summary of the salient findings:
- other Node.js containers on my system do not show these spikes.
- manually inserted GC calls do not mitigate the issue, making it unlikely to be related to Node.js GC
- other users can reproduce spikes, whether they're on Docker or not
Given the replies and confirmations that the issue was reproducible, I believe that my environment is irrelevant, but here goes: I am running on a system with an Intel Celeron N3350 processor with 4GB of memory. The OS is Ubuntu 20.04 LTS and I am running Docker version 19.03.8, build afacb8b7f0.
- Lingua principale
- Shell
- Stelle
- 540
- Fork
- 434
- Merge medio
- 24m
- PR unite (30g)
- 5
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di node-red/node-red-docker
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
node-red/node-red-docker#536 ·
-
node-red/node-red-docker#522 · 1 assegnatario ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
node-red/node-red-docker#513 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
node-red/node-red-docker#510 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
node-red/node-red-docker#493 · 13 commenti ·
Tutte le issue di node-red/node-red-docker
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
bug easy help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
lacs-project/sysknife#503 ·
-
help wanted kind/documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
liquidmetal-dev/flintlock#1239 ·