When testing with the Windows platform, it is affected by network conditions, resulting in inaccurate test results, especially in cases of high concurrency, requiring accurate response time for test requests, which is more demanding for the network. In such a case, consider installing JMeter on the Linux server side to test.
The following is a brief introduction to the Linux environment installation JMeter steps.
Preparation environment:
Linux Platforms
JMeter installation Package
Jdk
The download of the software can refer to the previous Windows environment installation JMeter, which is not mentioned here.
First, install the JDK
The installation of JDK can refer to the following content
Http://jingyan.baidu.com/article/90808022d25fa3fd90c80f5f.html
Second, installation JMeter
1. Upload the JMeter compressed package to the specified directory in Linux.
2. Unzip the package
Unzip Apache-jmeter-3.1.zip
3. Give jmeter.sh the right, into the decompression directory/jmeter/bin, chmod 777 jmeter.sh, can be used sh jmeter.sh-v to detect whether the command is available
Iii. Local writing of test plans
The preparation of the test plan has been introduced in the JMeter new WebService Interface test plan, which is not mentioned here.
Iv. Uploading the test plan
upload the locally saved test plan file to the server (the directory I uploaded is apache-jmeter-3.1/bin/data)
To execute a test plan:
SH jmeter.sh-n-T data/test.jmx-l data/result_1.jtl
V. Analysis of test results
After the test plan is executed, download the test result file result_1.jtl to local and view the file with JMeter.
Vi. reference Documentation
Http://www.cnblogs.com/zhaoxd07/p/5059541.html
JMeter Installing the--linux platform