Home > Software engineering >  How to measure Docker container CPU and memory in JMeter and compare it to other Docker container
How to measure Docker container CPU and memory in JMeter and compare it to other Docker container

Time:12-05

I want to do a test of Docker containers to measure the performance of alpine and non alpine images. I am using JMeter.

CodePudding user response:

  1. docker stats command
  2. Specialized solution like cAdvisor
  3. There is PerfMon Plugin for JMeter if you prefer to stay with JMeter for everything

CodePudding user response:

I don't get what exactly do you want to test but if you want to measure performance tests there are multiple ways and I would recommend that you get at least a better knowledge of Jmeter and how to work with Jmeter plugins.

As someone who worked on a similar thing, I would ask you to have a look at Perfmon Plugin, also I would recommend using the InfluxdbBackendListenerClien which could collect each test data and ship it to your influxdb container, then you could use it to create cool dashboards with Grafana tool.

If you are looking for a tool to collect docker data you can use telegraf along with influxdb and don't forget to use the UNIX socket volume if you are using telegraf as a docker container.

It's a bit complicated to explain but I think this GITHUB repo could help a bit, take a look at the docker file and the JMX file.

  • Related