Docker Stats command is very slow · docker-java/docker-java · Discussion #2425
Hi,
We are currently using the Docker Java client (version 3.4.2) to retrieve Docker Stats using the callback implementation and call the following for each container id.
dockerClient.statsCmd(container.getId()).exec(callback);
We have 6 containers running and to retrieve the stats took almost 19 seconds.
The commands work great but this is much slower than I was expecting.
We are looking at some specific metrics like cpu and memory.
Is there a plan to accelerate getting stats? Is there a faster method or tuning available?
Any advice or recommendations?
Thank you.