Jmeter stress testing environment construction

ajdk

Before installing jmeter, you need to install the java environment jdk first

1:jdk download address

https://www.oracle.com/java/technologies/downloads/#jdk18-windows

Insert image description here

2: jdk installation
(1) Create a new folder for installing jdk. It is best for the name of the new folder to be in English; otherwise the installation may fail during the installation process (2) Follow the installation wizard step by step
Insert image description here
.
Insert image description here

Insert image description here
Insert image description here
Insert image description here
Insert image description here

Insert image description here
3: jdk environment variable configuration
(1) Right click on this computer - [Properties] - [Advanced System Settings] - [Environment Variables]
Insert image description here
(2) Create a new system variable JAVA_HOME Variable
name: JAVA_HOME
variable value: jdk installation path. For example: D:\Tools\JDK
Insert image description here
(3) Create a new system variable CLASSPATH
variable name: CLASSPATH
variable value:

.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;

Insert image description here

(4) Edit the variable name Path and
add an environment variable

%JAVA_HOME%\bin

%JAVA_HOME%\jre\bin

Insert image description here
Insert image description here
(5) Check whether the configuration is successful.
Open the command prompt and enter java -version.
If the following content is displayed, the configuration is successful.
Insert image description here

Two J

1:JMeter download address
https://jmeter.apache.org/download_jmeter.cgi
Insert image description here

2: JMeter decompression
Unzip the downloaded zip
Insert image description here
3: JMeter environment variable configuration
(1) Right click on this computer - [Properties] - [Advanced system settings] - [Environment variables]
Insert image description here
(2) Create a new system variable JMETER_HOME
variable name: JMETER_HOME
variable value: The installation path of jmeter. For example: D:\Downloaded Software\Jmeter\apache-jmeter-5.5

Insert image description here
(3) Edit the system variable CLASSPATH
variable name: CLASSPATH
append variable value:

%JMETER_HOME%\lib\ext\ApacheJMeter_core.jar;%JMETER_HOME%\lib\jorphan.jar;

Variable value after appending:

.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;%JMETER_HOME%\lib\ext\ApacheJMeter_core.jar;%JMETER_HOME%\lib\jorphan.jar;

(4) Edit the variable name Path and
add an environment variable:

%JMETER_HOME%\bin

Insert image description here
Insert image description here
4: Run JMeter
and double-click jmeter.bat in the bin file of the installation path.
Insert image description here
If the following content is displayed, the configuration is successful.
Insert image description here
5: How to set JMeter to Chinese
Insert image description here

Guess you like

Origin blog.csdn.net/weixin_49543015/article/details/130137777