230310 Set up Jmeter

William Parker·2023년 3월 10일
0

Jmeter loading test!!!

https://www.youtube.com/watch?v=1w_YJ8_gK8U&t=370s
instruction Jmeter Json extractor.

https://www.youtube.com/watch?v=HWFVs03dM1E
Multiple users using the same api at the same time

Jmter install in the EC2 AWS

download and open mobaxterm terminal
connect the ec2 by pem key

In the Desktop
ssh -i ./[pemkeyfile].pem ec2-user@[ip]
Give permission
$ chmod 777 test.txt
cd -> move the folder
ls -> check files in the directory
ssh -i ./waitingcatch.pem ec2-user@3.39.000.000

Connect the ec2

set up the jmeter in the ec2 and java

sudo yum update -y
sudo yum install java-17-amazon-corretto -y

# validate java
java -version

# download JMeter 5.5
wget https://dlcdn.apache.org//jmeter/binaries/apache-jmeter-5.5.tgz

# download JMeter 5.5 checksum
sha512sum apache-jmeter-5.5.tgz

# validate checksum
if [[ $(cat apache-jmeter-5.5.tgz.sha512 | awk '{print $1}') -eq $(sha512sum apache-jmeter-5.5.tgz | awk '{print $1}') ]] ; then echo "Valid checksum. Proceeding to extract."; else echo "Invalid Checksum, please download it from secured source." ; fi ;

# extracting JMeter
tar -xf apache-jmeter-5.5.tgz
rm apache-jmeter-5.5.tgz

# validate JMeter
cd apache-jmeter-5.5/bin/
./jmeter -v
sudo yum install xauth -y

export DISPLAY=localhost:10.0

# validate X11 forwarding
# this should print `X11Forwarding yes`
sudo cat /etc/ssh/sshd_config | grep X11

# reboot
sudo reboot

and navigate apache-jmeter-5.5/bin/, then run ./jmeter.

profile
Developer who does not give up and keeps on going.

0개의 댓글