1

I have currently Jmeter 3.2 installed on my Mac (macOS Sierra). Now I want to install 3.1 because of the jmeter ERROR o.a.j.p.h.c.HC4 CookieHandler: Unable to add the cookie error.

How can I install an older version via home brew. I did brew install jmeter -3.1 but that doesn't work.

UBIK LOAD PACK
  • 33,980
  • 5
  • 71
  • 116
JohnSmith
  • 1,078
  • 1
  • 10
  • 21
  • What brew search jmeter returns? – Ori Marko Aug 03 '17 at 16:31
  • Unfortunately brew formula for JMeter does not support installing a specific version of JMeter, it only installs whatever is hard-coded in the formula (currently it's 3.2: https://github.com/Homebrew/homebrew-core/blob/master/Formula/jmeter.rb) – timbre timbre Aug 03 '17 at 16:47
  • You could run `brew edit jmeter`, change it to 3.1 and run your local formula. Check FAQ: https://docs.brew.sh/FAQ.html – timbre timbre Aug 03 '17 at 16:50

1 Answers1

4

You can try working this around by adding the next line to user.properties file

CookieManager.check.cookies=false

JMeter restart will be required to pick the property up. Also you can try playing with different Cookie Policy values:

Cookie Policy Values JMeter Cookie Manager

See Using the HTTP Cookie Manager in JMeter for more details.


If you still want to run JMeter 3.1 (or any other version available in JMeter Archives) you don't need to "install" it, JMeter is a Java-based application so it will be quite enough to download, unpack and run it. Given you use brew I believe you're using MacOSX, steps in "Terminal" application would look like:

  1. wget http://apache.claz.org//jmeter/binaries/apache-jmeter-3.1.tgz
  2. tar xf apache-jmeter-3.1.tgz
  3. cd apache-jmeter-3.1/bin/
  4. ./jmeter.sh
Dmitri T
  • 159,985
  • 5
  • 83
  • 133