Using JMeter for distributed performance testing

Source: Internet
Author: User

The use of JMeter for load testing, using a single machine simulation test more than 1000 strokes of the concurrency is somewhat inadequate, in the course of execution, the JMeter itself will automatically shut down, to solve this problem, you can use distributed testing, running multiple machines running so-called Agent to share JMeter own pressure, and take this to get a larger number of concurrent users, but need to make some relevant changes, as follows:

1. Install JMeter on all machines that expect to run JMeter as Load Generator, and identify one of the machines as the Controller and other machines as agents. Then run the Jmeter-server.bat file on all the agent machines-assuming we use two machines 192.168.0.1 and 192.168.0.2 as agents;

2, find the bin directory under the JMeter installation directory of the controller machine, and then find jmeter.properties this file, use Notepad or other text editing tools to open it;

3. Find the string "remote_hosts=" in the open file, and you can find such a line "remote_hosts=127.0.0.1". The 127.0..0.1 represents the machine running the JMeter Agent, which needs to be modified to "remote_hosts=192.168.0.1:1099,192.168.0.2:1099"--1099 of which are JMeter The default RMI port number for communication between the Controller and the Agent;

4, save the file, and restart the Controller machine jmeter.bat, and enter the Run-and Remote Start menu item, here you can see the Remote boot menu below the 192.168.0.1, 192.168.0.1 two IP address

5, if you want to make a computer execution, you can click to change the computer's IP address can be, if two are to execute, you can click the Run menu under the "Remote Run All" menu

6, sometimes used as a proxy machine too little, still can not meet the needs, you need to be a controller computer also as an agent, you also need to modify the Jmeter.properties file, the controller's IP address to write. Meanwhile, at this time, you need to open the controller computer in the JMeter under the Bin directory Jmeter-server.bat, and then open Jmeter.bat, at this time, into the run-and Remote Start menu, You can see that the controller is also running as a remote machine.

Using JMeter for distributed performance 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.