-
Notifications
You must be signed in to change notification settings - Fork 56
Building Apache JMeter
Below versions of Apache JMeter are available in respective distributions at the time of creation of these instructions:
- Ubuntu 18.04 has
2.13-3
- Ubuntu 20.04 has
2.13-4
- When following the steps below please use a standard permission user unless otherwise specified.
- A directory /<source_root>/ will be referred to in these instructions, this is a temporary writable directory anywhere you'd like to place it.
Apache Jmeter binaries are available and can be downloaded from here. To use these binaries, Java needs to be installed on mentioned distributions.
Note: Apache JMeter(v5.4.1) was verified at the time of creation of these instructions
-
RHEL (7.8, 7.9, 8.1, 8.2, 8.3)
- With Open JDK:
sudo yum install -y java-11-openjdk java-11-openjdk-devel
- With AdoptOpenJDK (OpenJDK11 with Eclipse OpenJ9 , OpenJDK11 with Hotspot)
sudo apt-get -y install wget tar
- Download and install AdoptOpenJDK (OpenJDK11 with Eclipse OpenJ9 , OpenJDK11 with Hotspot) from here.
- With Open JDK:
-
SLES (12 SP5, 15 SP2)
- With Open JDK:
sudo zypper install -y java-11-openjdk java-11-openjdk-devel
- With AdoptOpenJDK (OpenJDK11 with Eclipse OpenJ9 , OpenJDK11 with Hotspot)
sudo zypper install -y wget tar
- Download and install AdoptOpenJDK (OpenJDK11 with Eclipse OpenJ9 , OpenJDK11 with Hotspot) from here.
- With Open JDK:
-
Ubuntu (18.04, 20.04, 20.10)
- With Open JDK
sudo apt-get update sudo apt-get install -y openjdk-11-jdk openjdk-11-jdk-headless
- With AdoptOpenJDK (OpenJDK11 with Eclipse OpenJ9 , OpenJDK11 with Hotspot)
sudo apt-get -y install wget tar
- Download and install AdoptOpenJDK (OpenJDK11 with Eclipse OpenJ9 , OpenJDK11 with Hotspot) from here.
export JAVA_HOME=<path to java>
export PATH=$JAVA_HOME/bin:$PATH
To run the jmeter, extract binary tar to /<source_root>/
and comment out G1GC algorithm as it is unimplemented in OpenJDK zero variant
- Edit
/<source_root>/<apache-jmeter-directory>/bin/jmeter
@@ -182,7 +182,7 @@
# Finally, some tracing to help in case things go astray:
# You may want to add those settings:
# -XX:+ParallelRefProcEnabled -XX:+PerfDisableSharedMem
-: "${GC_ALGO:="-XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:G1ReservePercent=20"}"
+#: "${GC_ALGO:="-XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:G1ReservePercent=20"}"
# Always dump on OOM (does not cost anything unless triggered)
export PATH=/<source_root>/<apache-jmeter-directory>/bin:$PATH
jmeter --version
The information provided in this article is accurate at the time of writing, but on-going development in the open-source projects involved may make the information incorrect or obsolete. Please open issue or contact us on IBM Z Community if you have any questions or feedback.