Performance testing Tools-Apache JMeter (installation)

Source: Internet
Author: User

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

    • Error running JMeter
$/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

    • Apache JMeter Official

Performance testing Tools-Apache JMeter (installation)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.