Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

OS:Ubuntu 16.04.5 LTS

CPU: 2 4 core

RAM: 3 4 GB

HardDisk: 40 GB

Docker Version: 18.06.1-ce, build e68fc7a

...

OS: Ubuntu 16.04.3 LTS

CPU: 2 4 core

RAM: 3 4 GB

HardDisk: 40 GB

Java: openjdk version "1.8.0_181"

JMeter: 5.1.01

Install JMeter in virtual machine

...

Code Block
echo "nameserver <PrimaryDNSIPIP>" >> sudo /etc/resolvconf/resolv.conf.d/head
 
echo "nameserver <SecondaryDNSIP>" >> sudo /etc/resolvconf/resolv.conf.d/head
 
resolvconf -u

...

Code Block
mkdir jMeter


cd jMeter


wget http://mirrors.whoishostingthis.com/apache//jmeter/binaries/apache-jmeter-5.01.1.zip


unzip apache-jmeter-5.01.1.zip 


Run JMeter

Code Block
/home/ubuntu/jMeter/apache-jmeter-5.1.01/bin/jmeter

The above command will load the JMeter UI. Then navigate to File → Open → Browse and select the test plan jmx file to open. The jmx file is present in the apex-pdp git repository - jmx file path

...

  1. Make the etc/hosts entries

    Code Block
    languagebash
    echo $(hostname -I | cut -d\  -f1) $(hostname) | sudo tee -a /etc/hosts 


  2. Make the DNS entries

    Code Block
    languagebash
    echo "nameserver <PrimaryDNSIPIP>" >> sudo /etc/resolvconf/resolv.conf.d/head
    echo "nameserver <SecondaryDNSIP>" >> sudo /etc/resolvconf/resolv.conf.d/head
    resolvconf -u


  3. Update the ubuntu software installer

    Code Block
    languagebash
    apt-get update


  4. Check and Install Java

    Code Block
    languagebash
    apt-get install -y openjdk-8-jdk
    java -version

    Ensure that the Java version that is executing is OpenJDK version 8

  5. Check and install docker

    Code Block
    languagebash
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
    apt-get update
    apt-cache policy docker-ce
    apt-get install -y docker-ce
    systemctl status docker
    docker ps


  6. Change the permissions of the Docker socket file

    Code Block
    languagebash
    chmod 777 /var/run/docker.sock


  7. Check the status of the Docker service and ensure it is running correctly

    Code Block
    languagebash
    service docker status
    docker ps


...

Code Block
cd /usr/lib/jvm/java-1.8-openjdk-amd64/bin/ 


./jstatd -p 1111 -J-Djava.security.policy=visualvm.policy  &


exit

...

  1. Right click on "Remote" in the left panel of the screen and select "Add Remote Host..."
  2. Enter the IP address of apex-pdp docker container.


    Code Block
    docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container_name_or_id


  3. Right click on IP address, select "Add jstatd Connection..."
  4. In "jstatd Connections" tab, enter port 1111 and click OK.
  5. Right click on IP address, select "Add JMX Connection..."
  6. Enter the apex-pdp docker container IP Address (from step 2) <IP address>:9911 ( for example - 172.17.0.2:9991) and click OK.
  7. Double click on the newly added nodes under "Remote" to start monitoring CPU, Memory & GC.

...