Pressure test Jmeter+badboy

Source: Internet
Author: User
Tags time interval

Pressure Test Jmeter+badboy Preface: A lot of people want to learn stress test, but the first manual script really hurts, so today I teach you to use Badboy to record the pressure test script, and then use JMeter to do stress testing. Process: Badboy export jmeter pressure test script->jmeter for stress testing (especially for the stress test of the big Sir's job – the web version of the movie ticketing system) First step: Download Badboy and JMeter

badboy:http://www.badboy.com.au/
jmeter:http://jmeter.apache.org/

Installation is particularly simple, the author Luo Wei strength also did not encounter any difficulties. Here does not repeat, really did not pit, also do not need to configure what. Perhaps the only thing to note is that the JMeter is running and needs to open the batch file under the Bin directory: look below.

A command line appears first, and then a graphical interface appears

The second step is to record the script with Badboy and export the. jmx format

The author here casually take a message of the site to demonstrate, of course, people's mechanism is sure to prevent others DDoS attacks, so frequent requests, it will definitely return the results of denied access, but we are not concerned about the return results, I focus on the recording and testing process.

First enter the address to be measured in the address bar and then jump

At this time Badboy left script has recorded one, you can see the page has been jumped to the QQ mailbox, and script more than a record

Then enter the account password, click Login, page jump, while the script one more step

Then I quit the QQ mailbox. And, the script is a row more

Once the recording is complete, click Export JMeter in the upper left corner to save the script to the specified directory.

Step three: JMeter appearances first open the script that you just saved from Badboy

You can see that the test plan is one more, and then the thread group is the definition of concurrency, step is the step of the pressure measurement, meaning such as 1000 concurrent, will simulate 1000 people, constantly repeating just I recorded the operation, login mailbox, quit the mailbox so.

By double-clicking the thread group thread, you can define the number of threads, the number of cycles, and the random time interval. Want to do stress testing, of course, the more the number of threads the greater the pressure, the smaller the larger the interval.

Fourth step: The pressure measurement step has been written, is it possible to run directly? We also need to add a listener! To see the results of the pressure measurement returned!

There are many kinds of listeners, you can add them all to try, each have a spectacle! I added three listeners:

Finally, run! View Results View results tree

Table View

Aggregation report: I like to see this, can see the error rate, the maximum throughput. can reflect server performance.

Pressure test Jmeter+badboy

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.