JMeter Operating principle

Source: Internet
Author: User

JMeter Operating principle:

JMeter is run on the JVM virtual machine, each process overhead is greater than the LoadRunner process cost, if the process to run each load machine on the number of processes will not allow too much, when there is a lot of concurrency requires a large number of load machine, JMeter chose to run in a thread. JMeter drives multiple threads through thread groups to run test scripts to load the tested server, and multiple thread groups can be run on each load machine. The Jemter run scenario can be completed not only in the GUI mode, but also in the command line, and the command line runs in a less resource-intensive manner for the load machine. JMeter The basic principle is to establish a thread pool, multi-threaded running sampler generates a lot of load, in the run process through the assertion to verify the correctness of the results, can be monitored to record the test results;

If there are parametric requirements in the sampler, it can be done by configuring the component or the predecessor processor;

If there is an associated requirement in the sampler, it can be done by the post processor;

If you want to simulate the load scenario, such as how many users, how long the movement, can be done through the thread group;

If you want to simulate the concurrency scenario, it can be done by timer;

If you want to control the execution logic of the business, such as login only run once, can be done through the controller;

One: JMeter remote operation, remote operation of the architecture diagram

1: Control machine

When running multiple JMeter load machines for performance testing, the machine that is selected as the management machine is the control machine. The control machine can also participate in the script operation, and it also takes charge of the remote load Machine command remote load machine operation, and collects remote load machine running test results.

2: Load Machine

A load machine is a machine that initiates a load (request) to the application under test. The control machine is also a load machine. JMeter load machine is managed by the control machine (JMeter load machine). Like a test tool that supports other remote runs, a load machine is managed by a control machine to start a client program (Agent:jmeter-server.bat) so that the control machine can take over the load machine. Control opportunities to covert the running scripts to the remote load machine, but the running test scripts have parameter files or dependent jar packages, the controller does not send them to the remote load machine, this situation requires manual copying, you can also use the tool for automatic copying.

3: Remote Run logic

The remote load machine starts the agent program first, is connected to the control machine, the control machine connects the remote load machine, the control machine sends the instruction (script and the start command) to start the thread, the load machine runs the script, the callback status (including the test result), the control machine collects the result and displays

JMeter Operating principle

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.