For distributed load testing with jmeter we need to specify the Djava.rmi.server.hostname before starting the jmeter. For the server start we can uncomment #RMI_HOST_DEF=-Djava.rmi.server.hostname=xxx.xxx.xxx.xxx file in jmeter-server file.
But however to start the client we have to run jmeter.bat. And for distributed testing i have been using command line to run jmeter.bat file like this:
apache-jmeter-3.0/bin/./jmeter.bat -Djava.rmi.server.hostname=127.0.0.1
so, is there a file where i can include this Djava.rmi.server.hostname like we did for the jmeter-server which will specify that the rmi hostname is 127.0.0.1?
I looked at the jmeter.bat file and jmeter file. I couldnt locate anything. Nevertheless, i want to specify Djava.rmi.server.hostname=127.0.0.1 so that i dont have to run the above highlighted line of command.
With much appreciation. Regards