Jmeter distributed test configuration method and jmeter Configuration

Source: Internet
Author: User

Jmeter distributed test configuration method and jmeter Configuration

When JMeter is used for load testing, it is insufficient to use a single machine to simulate and test the concurrency of more than 1000 itineraries. During the execution, JMeter will automatically close itself. To solve this problem, you can use distributed testing to run the so-called Agent on multiple machines to share the pressure on JMeter and obtain a larger number of concurrent users. However, you need to modify the number of concurrent users as follows:


1. Install JMeter on all machines that want to run JMeter as the Load Generator, and determine one of them as the Controller and the other as the Agent. 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 the Agent;
2. Find the bin directory under the JMeter installation directory of the Controller machine, find the JMeter. properties file, and open it using notepad or other text editing tools;
3. Search for the "remote_hosts =" string in the opened file. You can find this line "remote_hosts = 127.0.0.1 ". 127. 0 .. 0.1 indicates the machine on which the JMeter Agent is running. modify it to "remote_hosts = 192.168.0.1: 1099,192.168 .0.2: 1099" -- 1099 indicates the default RMI port number for communication between the Controller and Agent of JMeter, the port number is displayed when the jmeter-server.bat above the Agent is running. Note: Some high versions of JMeter do not need to write port, remote_hosts = 192.168.0.1 can be;
4. Save the file, restart JMeter. bat on the Controller machine, and go to the Run-> Remote Start Menu. here we can see that there are two IP addresses under the Remote Start Menu: 192.168.0.1 and 192.168.0.1.
5. If you want to Run the command on a computer, click the IP address of the computer. If you want to Run the command on both, click the "remote Run all" menu under the "Run" menu.
6. If too few machines are used as proxies and cannot meet the requirements, you need to use the Controller computer as the Agent, and you also need to modify JMeter. properties file to write the IP address of the Controller. At the same time, you need to open the Controller under the JMeter bin directory of the jmeter-server.bat, and then open JMeter. bat. Now, go to the Run-> Remote Start Menu and you can see that the Controller is also running as a Remote machine.

Connection refused to host: 10.10.90.69 nested exception is... error, it was found that the JMeter-server.bat was started when an error was reported, the reason is that the jmeter Installation File is placed on the desktop has a Chinese character.


P.s. During the testing of the performance of the search engine last week, the database records the support provided by the DB for reference in the future.

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.