Docker Community Forums

Share and learn in the Docker community.

Very high CPU and MEM usage


(Dustin) #1

I’m having an issue a container on a client application. I’m seeing very high CPU and MEM usage for no apparent reason. This might be an issue related to docker-compose.

Link below includes information from ‘docker stats foo’ and ‘docker info’

Potential short term resolution might be to increase CPU usage in my compose file, but at this point not familiar with the cause.

(Nathan Le Claire) #2

If it’s being reported by docker stats, it’s the process in the container which is causing the resource usage, not Docker or Docker Compose. That kind of memory usage is not unusual for, say, a Java container. It’s hard to say what could be causing it without knowing what’s running in the container. Try htop, strace, and so on to see if anything unusual jumps out at you.

But it’s definitely your containerized process using these resources, not anything else.

(Dustin) #3

Thanks @nathanleclaire. I think you’re right. I didn’t realize docker stats foo was basically top.