jmeter

No jmeter.properties file when installed with brew?


I installed jmeter with brew and built a test plan which I hoped to be able to run on a distributed set of nodes. But I cannot find where the jmeter.properties file is in order to tell my local client where to look for the helper nodes. Any ideas? I tried adding it manually, but it did not take.

The /usr/local/Cellar/jmeter/5.0/bin folder only contains jmeter and jmeter.log

Thanks!


Solution

  • Looking into JMeter formula my expectation is that you should see jmeter.properties file under /usr/local/Cellar/jmeter/5.0/libexec/bin/ folder (this is applicable for JMeter 5.0, for other versions location should be different)


    PS1. You can install JMeter without using Homebrew, if you execute the following commands:

    cd ~ 
    wget https://www-eu.apache.org/dist//jmeter/binaries/apache-jmeter-5.0.tgz
    tar xf apache-jmeter-5.0.tgz
    

    then you will have "normal" JMeter installation as apache-jmeter-5.0 in your home folder

    PS2. According to JMeter Best Practices you should be rather using user.properties than jmeter.properties so consider placing your configuration into /usr/local/Cellar/jmeter/5.0/libexec/bin/user.properties file instead

    PS3. You can also pass any JMeter property via -J command-line argument so you can do something like

    jmeter -JpropertyName=propertyValue
    

    i.e.

    jmeter -Jremote.hosts=10.10.10.1,10.10.10.2 -n -t test.jmx -l result.jtl