Python Automation the next day-jmeter

Source: Internet
Author: User

I. JMeter pressure measurement

Two. Setting up the scene

1. Single-scene and multi-scene, mixed scene is the time to test a single interface, multi-scenario is the case of business processes, such as a shopping process, then this scene is a mixed scene, multiple interfaces to do the operation

2. Single scene, one request can be.

3. Mixed scene, multiple requests.

4. Measuring time, the general scene is running for 10-15 minutes, if it is to do fatigue test, can be pressed one day or a week. According to the specific situation to decide.

Three. Pressure test data preparation

1. When doing pressure measurement, data volume and data volume is large, the results of the test is not the same, so, we design the scene is to consider this situation, to test the data in the database and the volume of small data, if it is to test the volume of data is large, it is necessary to build data, Data can be created using JMeter, manipulating the database, or using Python to connect to the database, making data in batches

Four. Stress test Results View

1. TPS is the number of requests processed per second, that is, the processing power of the server, the higher the TPS, the better the server processing power

2, response time, that is, the processing time of each request

3, the number of concurrent users is also how much concurrency

Five. Jmeter Add a load machine

we are at the time of the pressure measurement, may be relatively large, a machine has not been able to start so many concurrent, this time we will use more than one machine together to send pressure, it is necessary to add presses, add presses how to add it, first to do the machine on the press to start JMeter agent, And then as the controller of the machine add the machine with the IP of the press.

JMeter Bin directory has a jmeter-server, start it can, Windows machine as a press, run Jmeter-sever.bat,linux as a press, run Jmeter-server.
Then in the JMeter configuration file as the control machine to add the press IP, jmeter configuration file in the Bin directory jmeter.properties, add the press, in the configuration file found remote_hosts add IP, And then restart JMeter to see the remote press.

Python Automation the next day-jmeter

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.