How to set JVM heap size at run time when running jmeter in distributed testing using docker -
i have below test infrastructure:
- 3 instances (master + 2 slaves), dockerized
- run command jmeter master (default 512m used in 3 machines)
sudo docker exec -i master /bin/bash -c "/jmeter/apache-jmeter-3.1/bin/jmeter -n -t /home/librarian_journey_req.jmx -djava.rmi.server.hostname=yy.yy.yy.yy -dclient.rmi.localport=60000 -r1xx.xx.xx.xx -j jmeter.log -l result.csv"
the above command works fine , getting results also. wanted increase heap size 3gb @ run time.
i had tried using below command:
sudo docker exec -i master /bin/bash -c "jvm_args="-xms1024m -xmx1024m" /jmeter/apache-jmeter-3.1/bin/jmeter -n -t /home/librarian_journey_req.jmx -djava.rmi.server.hostname=10.135.104.138 -dclient.rmi.localport=60000 -r10.135.104.135,10.135.104.139 -j jmeter.log -l result.csv"
after running above command nothing happens. please guide how can increased.
you can override environment variables when running containers. also, don't need use sudo
execute docker. try this:
docker exec -i -e jvm_args="-xms1024m -xmx1024m" master /bin/bash ...
Comments
Post a Comment