Apache JMeter

< 1 minute read

Apache JMeter is an open source desktop load testing tool, a 100% pure Java application, available on every OS (operating system) that supports Java 6 or later.

Apache JMeter Load Testing tool can be used for analyzing and measuring the performance of websites, APIs and various web services, by adding load through various type of requests ((HTTP, HTTPS, WebSockets, SOAP and REST web services, FTP and others) in order to determine the behaviour of the system under test.

JMeter helps to test the load and performance of servers, databases, networks and analyze its behaviour through multiple performance metrics like: response time, latency, hits per second, errors, response code, percentiles, standard deviation and others.

Apache JMeter

Apache JMeter Load Testing Performance Testing Test Automation

< 1 minute read

When you choose to install JMeter using Homebrew you may find yourself a bit lost with JMeter configuration files and ask yourself: “What is the location of the configuration files now?”

To make it easy for you to find the folders please see below the mapping for the folders in the Standard JMeter vs Homebrew installed JMeter table.

Configuration itemStandard JMeterHomebrew installed JMeter
Configuration/bin folder<jmeter home>/bin/usr/local/Cellar/jmeter/5.3/libexec/bin/
Library folder for plugin dependencies<jmeter home>/lib/ext/usr/local/Cellar/jmeter/5.3/libexec/lib/
Plugins folder<jmeter home>/lib/ext/usr/local/Cellar/jmeter/5.3/libexec/lib/ext

By using the location from above you will now be able to:

  • edit user.properties / jmeter.properties file in “Configuration/bin folder”
  • add a dependency to JMeter in “Library folder”
  • add an extra plugin to JMeter in “Plugins folder”

Written by Cristian Vazzolla.

LoadFocus is cloud Performance, load and stress testing tool which provides the infrastructure and the ability to run all these tests in less than a few minutes, keep history of the results, compare different runs to inspect performance improvements or performance degradation.

Apache JMeter

Apache JMeter Load Testing Performance Testing Test Automation

< 1 minute read

Often software developers get to ask themselves the question: Should I just run the tests in the GUI now that I finished developing them?

The answer is pretty simple, NO. You should not use the GUI when running the tests. The GUI should be used only for developing the tests.

For running the tests you should run JMeter from command line. Use the GUI only for Test creation and Test debugging.

For load testing, use CLI Mode (was NON GUI):

jmeter -n -t [jmx file] -l [results file] -e -o [Path to web report folder]

LoadFocus is cloud Performance, load and stress testing tool which provides the infrastructure and the ability to run all these tests in less than a few minutes, keep history of the results, compare different runs to inspect performance improvements or performance degradation.

Apache JMeter

Apache JMeter Load Testing Test Automation

2 minutes read

Why is Apache JMeter very slow when creating and running load tests?

If you just downloaded and opened Apache JMeter and the UI it feels very slow, here are some items you can follow to make Apache Jmeter GUI move faster.

Increase the Apache JMeter Heap Size

  1. Apache JMeter is a Java application, this means you have to increase the Java Virtual Machine initial heap size and maximum heap size
  2. The easiest way to increase the heap sizes is to edit the jmeter.bat file and add the following line:

With JMeter Cloud Load Testing Tool from LoadFocus, you can upload your Apache JMeter test scripts (.jmx files), run and analyse JMeter results from multiple world locations, everything in an easy to use UI.

Apache JMeter

Apache JMeter Load Testing Performance Testing Test Automation

2 minutes read

A lot of times you will need to install some extra plugins that will help you in developing or running the performance tests. For this you will need to use the JMeter Plugins Manager.

Below are the steps needed to install the Plugin Manager and install extra plugins:

  • Install Apache JMeter ( if you have not already installed JMeter for development please check how this is done in the following blog post: How to install Apache JMeter on Mac)
  • Once installed start JMeter by running:
    • jmeter (from command line if installed with Homebrew)
    • sh jmeter.sh (from command line if installed from the archive)
  • Check if you have Plugins Manager installed by clicking on the Options menu – see below image:
Apache JMeter Plugins Manager
  • If the Plugins Manager is not installed you need to install it by downloading the Plugins Manager JAR file and put it into JMeter’s lib/ext directory. Then start JMeter and go to Options menu to access the Plugins Manager.
  • Once installed the Plugins Manager menu item should appear
  • Select which plugins you need to install and start testing

LoadFocus is cloud Performance, load and stress testing tool which provides the infrastructure and the ability to run all these tests in less than a few minutes, keep history of the results, compare different runs to inspect performance improvements or performance degradation.

Apache JMeter

Apache JMeter Load Testing Performance Testing

< 1 minute read

Before Homebrew 2.0 it was possible to install JMeter with all the extra plugins by using the following command:

brew install jmeter --with-plugins

Since Homebrew 2.0 the options have been removed so the command from above will show ‘Error: invalid option: –with-plugins‘.

How to fix

Apache JMeter

Apache JMeter Load Testing Modern Performance Metrics Performance Testing Test Automation

2 minutes read

When starting with Apache JMeter for performance testing the first step you need to take is to install JMeter on your development machine so that you can develop the test scripts.

For installing JMeter on Mac machine you have a couple of options:

  • Installing JMeter via Homebrew
  • Installing JMeter by downloading the archive with the latest release

Installing JMeter via Homebrew

In case you do not know what Homebrew means, we can say just that is a package manager for macOS. (For more information on how the set up Homebrew you can find on https://brew.sh/. )

Installing JMeter using HomeBrew involves the following steps:

  • Open a Mac terminal where you will run all the commands
  • Check to see if Homebrew package manager is installed on your Mac. For that please run:
    • brew help or brew -v
  • If Homebrew is not installed, you can easy install it using the following command:
    • /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
  • To install JMeter without any extra plugins you need to run the following command:
    • brew install jmeter
  • To install JMeter with all the extra plugin you need to run the following command:
    • brew install jmeter --with-plugins (since Homebrew 2.0 this option does not work anymore )
  • Verify the installation by using the command:
    • jmeter -v
  • Run JMeter with the command:
    • jmeter

Installing JMeter by downloading the archive with the latest release

With JMeter Cloud Load Testing Tool from LoadFocus, you can upload your Apache JMeter test scripts (.jmx files), run and analyse JMeter results from multiple world locations, everything in a easy to use UI.