4

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!

Tony DeStefano
  • 819
  • 6
  • 11

2 Answers2

5

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
Dmitri T
  • 159,985
  • 5
  • 83
  • 133
  • Thanks. The file was not in the location you specified, so I uninstalled it with homebrew and installed it manually. Now everything is there. Thanks! – Tony DeStefano Oct 31 '18 at 13:25
  • Found it under `/opt/homebrew/Cellar/jmeter/5.5/libexec/bin/jmeter.properties` as of today 2023-06-21 – camikiller Jun 21 '23 at 14:35
0

It's also not in my /usr/local/Cellar/jmeter/5.0/bin folder.

However, if your intention is simply to have jmeter load your user.properties file, then

  1. create a user.properties file inside /usr/local/Cellar/jmeter/5.0/bin
  2. then execute jmeter by running $ /usr/local/Cellar/jmeter/5.0/bin/jmeter

The user.properties file would be loaded by jmeter.

user3240644
  • 2,211
  • 2
  • 24
  • 35