0
votes

How can I change the heap size of all slave machines while using NON-GUI mode in JMeter distributed test?

Eg: I want to trigger this from the master machine. C:\jmeter\bin\jmeter.bat -n -t C:\test.jmx -Jusers=10000 -R192.168.0.19,192.168.0.29......

Is there some parameter that I can pass here so that the heap size of all the slave machines will be changed from the master machine?

1

1 Answers

0
votes
  1. Heap size is something you set on JVM startup, once it's defined it cannot be controlled
  2. JMeter is being launched inside the JVM so first JVM is initialized then it loads JMeter classes

So if you need to control JMeter startup arguments dynamically depending on how you prepare the slaves and your technologies stack you might want to go for something like Chef, Puppet, Ansible, K8S, Docker Swarm, Terraform, etc.