JMeter_docker

Use JMeter with Docker

  • Replace Demo.jmx
  • Change the following about Demo.jmx file
1
COPY		Demo.jmx /opt/jmeter
  • build Docker file in root folder
1
docker build -t performanceDocker .
  • run docker with performance testing
1
docker run --rm -v $(pwd):/root performanceDocker bin/jmeter -n -t Demo.jmx
  • The log maybe like this:
1
2
3
4
5
6
7
8
Writing log file to: /opt/jmeter/jmeter.log
Creating summariser <summary>
Created the tree successfully using Demo.jmx
Starting the test @ Wed Jan 25 02:16:12 UTC 2017 (1485310572802)
Waiting for possible Shutdown/StopTestNow/Heapdump message on port 4445
summary = 1 in 00:00:01 = 1.2/s Avg: 619 Min: 619 Max: 619 Err: 0 (0.00%)
Tidying up ... @ Wed Jan 25 02:16:13 UTC 2017 (1485310573711)
... end of run

Resource