Brief introduction
Apache JMeter is an open source tool for load testing and performance testing in 100% pure Java language development.
Function
Apache JMeter can perform performance tests on static/dynamic resources, simulating multiple users ' side-by-side request resources to test their strength or analyze overall performance under different loads.
Use 1. Download Apache JMeter
To access http://jmeter.apache.org, click menu Download to download the corresponding program.
or use the brew command to download
$ Brew Install JMeter
2. Running JMeter
$ open/usr/local/bin/jmeter
or open Terminal (terminal), use the CD command to run the jemeter.sh file into the Apache-jmeter/bin directory
$ sh jmeter.sh
3. Operation effect
$ sh jmeter.shwriting log file to:/users/cotide/documents/Test/performance Test/apache-jmeter-3.0/bin/jmeter.log
Usage issues
Now you can formally use the JMeter tool
$/usr/local/cellar/jmeter/3.0/bin/jmeter; Exit Error:java version is too low to run JMeter. Needs at least Java >= 1.7.0.logoutSaving session......copying gkfx history......saving history...truncating History files......completed. [Process completed]
Java version is too low to run JMeter. Needs at least Java >= 1.7.0.
Check Java version run JMeter java version wrong
$ java-version
Java version "1.6.0_65" Java (tm) SE Runtime Environment (build 1.6.0_65-b14-468-11m4833) Java HotSpot (tm) 64-bit Server VM ( Build 20.65-b04-468, Mixed mode)
The solution version is as follows:
Download the Java SE 1.7 + version configuration environment variable, re-run JMeter
- JMeter use optimization in order to make the JMeter boot more convenient, you can use the alias configuration of Mac OS to the ~/.bash_profile file to run it quickly.
# alias alias config alias jmeter= '/usr/local/cellar/jmeter/3.0/bin/jmeter '
You can start it directly in terminal (terminal) using the defined jmeter command.
Resources
Performance testing Tools-Apache JMeter (installation)