Jmeter-run based on Ubuntu and Jmeter-run on Ubuntu

Source: Internet
Author: User

Jmeter-run based on Ubuntu and Jmeter-run on Ubuntu

These days have been around for a long time. We have integrated a set of Automatic continuous integration tools for interfaces, starting with the most basic Jmeter operation. Because I deploy a continuous integration environment with Docker, the interface must run on the server.

I. Install jdk on a Linux Server

1: Download jdk-8u74-linux-x64.tar.gz to the server.Lrzsz.

   RunSudo apt-get install lrzsz

Lrzsz is split into two Commands: sz and rz.

The sz Command sends the file to the local device:

# Sz filename

Rz command uploads files to the server locally

# Rz

Create a java folder in the/tmp directoryRun the rz command in the java folder and directly upload the jdk package to the server.

  

2: Decompress the tar package.

Run the tar-xvf jdk-8u74-linux-x64.tar.gz, decompress the jdk package, and generate the jdk1.8.0 _ 74 directory

  

3: Configure Environment Variables

Vi/etc/profile

Add two lines at the end

Export JAVA_HOME =/usr/local/java/jdk1.8.0 _ 74

Export PATH = $ JAVA_HOME/bin: $ PATH

Run the command: source/etc/profile. The configured environment variables take effect.

4: Check whether the installation is successful. Run the following command: java-version.

  

Ii. Install jmeter

1. Package the local Jmeter file into a zip file: apache-jmeter-3.2.zip, and then use the rz command to upload to the server

2. Decompress on the server to generate the jmeter-3.0 directory

3. install unzip: apt-get install unzip

4. Decompression: unzip apache-jmeter-3.0_json.zip

5. Put the jmeter-3.0 directory under/usr/local

6. Configure Jmeter environment variables. Vi/etc/profile, and then add the following variables

Export JAVA_HOME =/usr/local/java/jdk1.8.0 _ 74

Export CLASSPATH = $ JMETER_HOME/lib/ext/ApacheJMeter_core.jar: $ JMETER_HOME/lib/jorphan. jar: $ CLASSPATH

 Export PATH = $ JMETER_HOME/bin: $ PATH

7. Execute the command: source/etc/profile. The configured environment variables take effect.

8. Check the installation result: jmeter-v

  

Iii. Script test run

Run the command: # jmeter-n-t/tmp/apache-jmeter-3.2/bin/lsmsp. jmx-l log. jtl to view the result

Parameter description:

-N: run the script in a non-GUI mode.

-T: followed by the Script Name

-L: the log name is followed to save the running result.

  

PassCat log. jtlView result logs

Running jmeter on Ubuntu is over. jenkins will be released soon!

 

  

 

 

 

  

 

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.