187

We want to use JMeter.

I've downloaded the production version as directed in the user manual at http://jmeter.apache.org/usermanual/get-started.html

But how do I get started and install the software?

I don't know java and I can't find any instructions on what I'm supposed to do with the download.

I am on a Mac.

How do I install the product as a usable program?

Lin Du
  • 88,126
  • 95
  • 281
  • 483
Michael Durrant
  • 93,410
  • 97
  • 333
  • 497

13 Answers13

401

The easiest way to install it is using Homebrew:

brew install jmeter

Plugins are now included

And to open it, use the following command (since it doesn't appear in your Applications):

open /usr/local/bin/jmeter

if you have newer macbook try this: open /opt/homebrew/bin/jmeter

grepit
  • 21,260
  • 6
  • 105
  • 81
Adam Mendoza
  • 5,419
  • 2
  • 25
  • 31
  • 2
    switched to this as I use and prefer homebrew – Michael Durrant Jul 04 '14 at 11:11
  • 6
    Not working! $ brew install jmeter ==> Downloading http://www.apache.org/dyn/closer.cgi?path=jmeter/binaries/apache-jmeter-2.11.tgz ==> Best Mirror http://mirror.cogentco.com/pub/apache/jmeter/binaries/apache-jmeter-2.11.tgz curl: (22) The requested URL returned error: 404 Not Found Error: Failed to download resource "jmeter" Download failed: http://mirror.cogentco.com/pub/apache/jmeter/binaries/apache-jmeter-2.11.tgz – tk_ Nov 24 '14 at 05:48
  • 5
    @thusharaK You'll need to run "brew update" as the recipe is pointing to an older version 2.11 of jmeter than the one currently hosted by the mirror 2.12. – Erich Jan 20 '15 at 19:02
  • If some one suffer from broken of drag & drop or copy & paste, remember to launch from click instead of ternimal. – Sisyphus Mar 04 '15 at 03:36
  • thanks @Adam, if anyone wants more detail https://octoperf.com/blog/2017/10/26/how-to-install-jmeter-mac/ – Rucha Bhatt Joshi Sep 10 '19 at 10:56
  • 6
    I get: Error: invalid option: --with-plugins. But it works without that, thx – slashdottir Dec 18 '19 at 20:48
  • 1
    This is not working in later version if mac – Neenu Chandran Apr 26 '22 at 19:43
  • 14
    Hello, just did this and couldn't get jmeter to run. Looks like it was placed in a different directory. Adding this comment for future users. ```open /opt/homebrew/bin/jmeter``` – wykydtronik Jun 20 '22 at 18:00
  • The directory for me was also `/opt/homebrow/bin/jmeter` but if in case it changes in the future, i found out where the directory is using `which jmeter` – Samuel Mar 02 '23 at 06:23
  • 1
    For me`jmeter` command actually opens up the application – Nishan B Apr 03 '23 at 08:38
122

jmeter is now just installed with

brew install jmeter

This version includes the plugin manager that you can use to download the additional plugins.

OUTDATED:

If you want to include the plugins (JMeterPlugins Standard, Extras, ExtrasLibs, WebDriver and Hadoop) use:

brew install jmeter --with-plugins

Dandalf
  • 2,379
  • 1
  • 19
  • 17
  • 3
    I'd favor this answer over the other one, because it's always a pain when you work on someone else's test plan to discover that they are using a plugin you don't have and that you have to uninstall and reinstall with homebrew. Just install with all plugins and be done with it (except if your intent is to catch test plans that use plugins when they shouldn't, of course). – haylem Apr 14 '15 at 13:23
  • just downloading the jar and running it is faster, unless you have brew set up. (As described directly below by Laurent Bristiel) – Andrew Paul Simmons May 26 '15 at 14:55
  • I see this error with command above `==> Downloading http://www.apache.org/dyn/closer.cgi?path=jmeter/binaries/apache-jmeter-2.11.tgz ==> Best Mirror http://apache.mirrors.hoobly.com/jmeter/binaries/apache-jmeter-2.11.tgz curl: (22) The requested URL returned error: 404 Not Found Error: Failed to download resource "jmeter" Download failed: http://apache.mirrors.hoobly.com/jmeter/binaries/apache-jmeter-2.11.tgz` – realPK Dec 04 '15 at 20:47
  • I have an updated brew version and when I install this it seems corrupted. Installing jmeter without plugins and then getting the plugins seperately seem to be the best bet. – Curious_Bop Apr 27 '16 at 12:04
  • 28
    I ran `brew update` and then ran above command but I am getting this error `Error: invalid option: --with-plugins` – Naresh Joshi Apr 02 '19 at 09:10
  • It seems they've updated the install process. Now, simply issuing `brew install jmeter` brings the "Plugins Manager" menu option (which you can use to visually install the desired plugins) – diogo Jan 04 '22 at 12:49
55

Install jmeter using the following command

brew install jmeter

then open it using this

open /usr/local/bin/jmeter
paradocslover
  • 2,932
  • 3
  • 18
  • 44
Henry
  • 899
  • 1
  • 8
  • 12
33
  1. Download apache-Jmeter.zip file
  2. Unzip it
  3. Open terminal-> go to apache-Jmeter/bin
  4. sh jmeter.sh
halfzebra
  • 6,771
  • 4
  • 32
  • 47
Tabish Javed
  • 917
  • 9
  • 12
17

Once you got the ZIP from the download, extract it locally, and with your finder, go in bin directory.

Then double-click on ApacheJMeter.jar to launch the User Interface of JMeter.

This and the next steps are described in a blog entry.

catch23
  • 17,519
  • 42
  • 144
  • 217
Laurent Bristiel
  • 6,819
  • 34
  • 52
5

You have 2 options:

brew update to update homebrew packages

brew install jmeter to install jmeter

Read this blog to know how to map folders from standard jmeter to homebrew installed version.

  • Install using standard version which I would advise you to do. Steps are:

    1. Install Last compatible JDK version (7 or 8 as of JMeter 3.1).

    2. Download JMeter from here

    3. Unzip folder and run from the folder:

bin/jmeter

UBIK LOAD PACK
  • 33,980
  • 5
  • 71
  • 116
3

Download last version (not 2.5.1 or other old ones) from jmeter.apache.org

Unzip file

Ensure you install a version of JAVA which is compatible, Java 6 or 7 for JMeter 2.11

In bin folder click on jmeter.sh not on jar or execute sh ./apache-jmeter-x.x.x/bin/jmeter in the terminal.

x.x.x is the version you use.

Finally, when started you may want to select System Look and feel for Mac OSX better integration. Menu > Options > Look and Feel > System

Lin Du
  • 88,126
  • 95
  • 281
  • 483
pmpm
  • 705
  • 1
  • 5
  • 20
2

I am also new to this.
I have followed this process to start the application in Mac:

  1. I downloaded apache-jmeter-3.3_src.zip from http://jmeter.apache.org/download_jmeter.cgi website.
  2. I extracted the files and then move to bin folder and then you can find a file named jmeter, this is an executable file. Right click on this and open with terminal and wait for 5 minutes, that's it.

Thank you, I hope this might help.

סטנלי גרונן
  • 2,917
  • 23
  • 46
  • 68
2

Using brew

brew install jmeter

To navigate to the folder

/opt/homebrew/Cellar/jmeter

Note: You can create an alias, to open this often.

2

The easiest way to install it is using Homebrew:

brew install jmeter

Plugins are now included

And to open it, use the following command (since it doesn't appear in your Applications):

open /opt/homebrew/bin/jmeter
YAPS
  • 511
  • 6
  • 7
1

Here is quick video guide to cover below 2 steps Install Jmeter on Mac in 2 Minutes

Step 1: Install Homebrew (If not already present)

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Run above command from the terminal (https://brew.sh/)

Step 2: Install JMeter using Homebrew package Manager https://formulae.brew.sh/formula/jmeter#default

brew install jmeter
VedantK
  • 9,728
  • 7
  • 66
  • 71
1

Once you download the and unzip the file from the apache site,

  • Right click and select new terminal at folder
  • In the terminal type cd bin
  • Then type sh jmeter.sh
Sean Dillon
  • 140
  • 8
0

I installed JMeter with SDKMAN, so the path to the executable is different from Homebrew. Nevertheless I created the workflow to start JMeter including the option to drop test file on.

enter image description here

C.A.B.
  • 465
  • 4
  • 12