why docker container consume huge CPU load average
1
vote
0
answers
1098
views
I want to discuss about strange behavior on our rhel 7.6 server
We installed Kafka exporter with container on the server – kafka-01 machine ( total CPU on machine are 12 )
The following
yml
file described the Kafka exporter container configuration
more docker.kafka-exporter.yml
---
version: '2.4'
services:
kafka-exporter:
mem_limit: "612m"
image: kafka-exporter:v1.2.0
restart: always
network_mode: host
container_name: kafka-exporter
command: ["--kafka.server=kafka01.sys65.com:6667"]ump
ports:
- 9308:9308
logging:
driver: "json-file"
options:
max-size: "15m"
max-file: "1"
so when we start the container with dockr-compose
, as docker-compose -f docker.kafka-exporter.yml up -d
we notices that CPU load average jump from ~2-3
to 30-40
after 1-2 hours
and only restart of machine return the normal CPU load average to normal ( around 1 - 2
) , but again CPU jump each time we start the docker compose , ( even stopping the docker compose not decrease the CPU load average )
can someone gives some hint what could be the reason for that strange behavior ?
regarding our case is it useful to consider to install the https://github.com/draios/sysdig , for investigation ?
Notes:
We verified the CPU load avrg from uptime
linux command
*sometimes machine became **freeze** or **HANG** so we cant access the machine , and only reboot help to return machine again to normal*
Asked by yael
(13936 rep)
Nov 2, 2021, 06:50 AM