Get the App
SLTechnology News&Howtos  ›  Servers  › 

Jmeter tutorials for building a distributed stress testing environment

Shulou Source: shulou.com Published: 2022-06-03 04:33:20 11月15日 Update

This article is to share with you the detailed tutorial of jmeter to build a distributed stress testing environment. I believe most people don't know how to build it yet. In order to let you learn, I summarized the following contents. Without saying much, let's read on.

Role IP operating system version Controller192.168.10.103Windows 105.1.1Agent192.168.10.210CentOS 75.2.1Agent192.168.10.211CentOS 75.2.1

Note: under normal circumstances, we recommend that all versions of jmeter should be consistent, and if they are inconsistent, the version of Agent should be higher than Controller.

Configuration of the Agent machine:

1. Install JAVA 1.8 JDK (abbreviated)

two。 Download Jmeter

Wget http://mirrors.tuna.tsinghua.edu.cn/apache//jmeter/binaries/apache-jmeter-5.2.1.tgztar zxf apache-jmeter-5.2.1.tgz

3. Close rmi ssl

Sed-I / I

Otherwise, it will show up.

Server failed to start: java.rmi.server.ExportException: Listen failed on port: 0; nested exception is:

Java.io.FileNotFoundException: rmi_keystore.jks (No such file or directory)

An error occurred: Listen failed on port: 0; nested exception is:

Java.io.FileNotFoundException: rmi_keystore.jks (No such file or directory)

4. Configure rmi.server.hostname to modify the

# RMI_HOST_DEF=-Djava.rmi.server.hostname=xxx.xxx.xxx.xxx

Modify to

RMI_HOST_DEF=-Djava.rmi.server.hostname=192.168.10.210 (192.168.10.211 if it is 211)

5. Start jmeter-server

Apache-jmeter-5.2.1/bin/jmeter-server &

Controller machine configuration:

You also need to modify the jmeter.properties file

# server.rmi.ssl.disable=false

Change to server.rmi.ssl.disable=true

And then put the

Remote_hosts=127.0.0.1 is modified to

Remote_hosts=192.168.10.210:1099192.168.10.211:1099

So far, the distributed stress testing environment has been successfully built. Have you learned Jmeter to build a distributed stress testing environment? If you want to learn more skills or want to know more about it, please follow the industry information channel.

Tags: Distributed stress environment testing files versions configuration consistency content more machines tutorials success so far operating system most suggestions situations skills see Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL NVidia Docker MariaDB Xiaomi