Apache JMeter for server stress testing

Source: Internet
Author: User

1. Preface

Recently, the project encountered a problem: Other companies docking our system, the request volume is too large, return to the other side is lost format, about a hundred thousand of in total there are more than 10 single will appear format error!

So our boss called me to use Apache JMeter to carry out concurrent testing, but also very useful, easy to get started.

2, download 1, direct Baidu Apache JMeter, the first one just.

  

2, click.

  

3, click the drop down, you can see two download links. (Look at the picture in detail!) )

  

3. Configure the Environment

When you're done downloading, unzip to any folder.

A, to configure the JMeter environment variables before use:
In the user variable, create a new variable named "Jmeter_home" with a variable value of E:\apache-jmeter-4.0 (that is, the address you unzipped)

B, Configuration classpath, append on;%jmeter_home%/lib/ext/apachejmeter_core.jar;%jmeter_home%/lib/jorphan.jar;%jmeter_home%/lib/ Logkit-2.0.jar

C, if the computer has been installed, you can directly under the Decompression Path bin\jmeter.bat start batch file, to start JMeter. D, if not installed JDK8

  

E, drop down to find JDK8

  

F, download Select Accept, and then download the version of Windows.

  

1. Installation

    

2. Select Development tools

    

G, after installation, configure the environment

1, the new user variable name "java_home", the variable value is: Install JDK directory, my is C:\Program files\java\jdk1.8.0_112

    

2, add in path;%java_home%\bin;%java_home%\jre\bin

    

3, the variable name "CLASSPATH", the value of the variable is.; %java_home%\lib;%java_home%\lib\tools.jar

    

4, test environment is well equipped!

4. Start

  

5, basic settings 1, after the start can choose Simplified Chinese

  

2. New test plan and create thread group

  

3. Add an HTTP request to the thread group

  

4. Add HTTP Header Manager

  

5. Add Summary Report

  

6. Add View result tree

  

7, add a good after the thread group to configure the four options, according to the actual situation to set.

8, after the start, you can see whether the success and other information.

7. PostScript

Measured all day, idle panic, fortunately measured something out. The number of threads from 100 to 700, and finally put the data to hang up, haha ha! (Why not call the tester ...) )

Then jmeter the source code two times development can see this: https://www.cnblogs.com/taoSir/p/5144274.html

Apache JMeter for server stress testing

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.