...
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
...
Make the etc/hosts entries
Code Block language bash echo $(hostname -I | cut -d\ -f1) $(hostname) | sudo tee -a /etc/hosts
Make the DNS entries
Code Block language bash echo "nameserver <PrimaryDNSIPIP>" >> sudo /etc/resolvconf/resolv.conf.d/head echo "nameserver <SecondaryDNSIP>" >> sudo /etc/resolvconf/resolv.conf.d/head resolvconf -u
Update the ubuntu software installer
Code Block language bash apt-get update
Check and Install Java
Code Block language bash apt-get install -y openjdk-8-jdk java -version
Ensure that the Java version that is executing is OpenJDK version 8
Check and install docker
Code Block language bash 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
Change the permissions of the Docker socket file
Code Block language bash chmod 777 /var/run/docker.sock
Check the status of the Docker service and ensure it is running correctly
Code Block language bash 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 |
...
- Right click on "Remote" in the left panel of the screen and select "Add Remote Host..."
Enter the IP address of apex-pdp docker container.
Code Block docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container_name_or_id
- Right click on IP address, select "Add jstatd Connection..."
- In "jstatd Connections" tab, enter port 1111 and click OK.
- Right click on IP address, select "Add JMX Connection..."
- Enter the apex-pdp docker container IP Address (from step 2) <IP address>:9911 ( for example - 172.17.0.2:9991) and click OK.
- Double click on the newly added nodes under "Remote" to start monitoring CPU, Memory & GC.
...