Can I using a JMeter controller (JMeter client) outside of AWS (on my desktop) and the JMeter servers inside AWS EC2 servers? I currently got the jmeter-server started up and assigned an internal IP endpoint itself, e.g. 172.x.x.x:9999 but when my JMeter controller try to start it from an external IP (Elastic IP) and got "no such object in table" error.
Very nice. I tried your steps and was just confused about the steps where you check whether the injector is connected with the local machine or not. It's giving an error not found and not known. Can you please describe it
Hello @stayfitwithneha, At minute 07:26 the network connection between the controller and injectors isn't supposed to work because we lack the proper ports authorizations (security groups inbounds rules). I just wanted to showcase the importance of the firewall configuration (08:05). If: 1- All of your EC2 instances are in the same subnet, 2- JDK and JMeter are installed and the jmeter.properties files configured 3- You allowed the right ports in the security groups inbound rules (the same ports mentioned in jmeter.properties files) And still having issues please let me know, I will gladly discuss it with you on Discord. You can also check out this blog post: the-engineer.io/blog/jmeter-remote-testing-on-aws-ec2/ Best regards, TE
@@the-engineer-io Can you please let me know that where you are saving your jmx and other files like csv and all which needs to be used in script. and running on ec instance. i think we have to copy paste them on ec instances as well. am i correct? if yes then is it needed to copy on all master and slave systems or just on master? pl suggest?
Hello @user-fr8cb2ey3i SCP is a Linux tool used to send files over SSH to a remote host. If you run Windows you can use FileZilla or WinSCP instead. In the video I used the following command : scp -i ssh_keys/controller_ssh_key.pem test_script.jmx ec2-user@ec2-18-212-2-116.compute-1.amazonaws.com/home/ec2-user/apache-jmeter-5.6.2/bin ssh_keys/controller_ssh_key.pem : is my ssh key generated here 00:25 test_script.jmx : the script example I wanted to send to my controller instance ec2-user : the username to access the controller instance ec2-18-212-2-116.compute-1.amazonaws.com : the public address of the controller instance /home/ec2-user/apache-jmeter-5.6.2/bin : the exact location where I wanted to send my file For the proposes of the demo, the .jmx script is located under the bin folder of the controller’s JMeter. JMeter remote will automatically send the test script to all its injectors. In this particular test, we didn’t have data files (.csv for example). In that case, JMeter won’t copy the data files referenced in you test script, you will have to copy those files to each injector manually. For more information, you can write to me in this channel : discord.gg/wNTf7nqq
Thanks! Helped me a lot. Especially what ports to allow in security group.
Very clear and helpful, especially which ports to authorize, thanks a lot !
Precise and straightforward !
Nice explanation ...Thank you so much for your time and efforts.
Precise and clear
Can I using a JMeter controller (JMeter client) outside of AWS (on my desktop) and the JMeter servers inside AWS EC2 servers? I currently got the jmeter-server started up and assigned an internal IP endpoint itself, e.g. 172.x.x.x:9999 but when my JMeter controller try to start it from an external IP (Elastic IP) and got "no such object in table" error.
Very nice. I tried your steps and was just confused about the steps where you check whether the injector is connected with the local machine or not. It's giving an error not found and not known. Can you please describe it
Hello @stayfitwithneha,
At minute 07:26 the network connection between the controller and injectors isn't supposed to work because we lack the proper ports authorizations (security groups inbounds rules). I just wanted to showcase the importance of the firewall configuration (08:05).
If:
1- All of your EC2 instances are in the same subnet,
2- JDK and JMeter are installed and the jmeter.properties files configured
3- You allowed the right ports in the security groups inbound rules (the same ports mentioned in jmeter.properties files)
And still having issues please let me know, I will gladly discuss it with you on Discord.
You can also check out this blog post: the-engineer.io/blog/jmeter-remote-testing-on-aws-ec2/
Best regards,
TE
@@the-engineer-io thank you. I will try this and let you know
@@the-engineer-io Can you please let me know that where you are saving your jmx and other files like csv and all which needs to be used in script. and running on ec instance. i think we have to copy paste them on ec instances as well. am i correct? if yes then is it needed to copy on all master and slave systems or just on master? pl suggest?
time stamp 6:33 scp command, can you please elaborate . how can i connect with you on discord.
Hello @user-fr8cb2ey3i
SCP is a Linux tool used to send files over SSH to a remote host. If you run Windows you can use FileZilla or WinSCP instead.
In the video I used the following command : scp -i ssh_keys/controller_ssh_key.pem test_script.jmx ec2-user@ec2-18-212-2-116.compute-1.amazonaws.com/home/ec2-user/apache-jmeter-5.6.2/bin
ssh_keys/controller_ssh_key.pem : is my ssh key generated here 00:25
test_script.jmx : the script example I wanted to send to my controller instance
ec2-user : the username to access the controller instance
ec2-18-212-2-116.compute-1.amazonaws.com : the public address of the controller instance
/home/ec2-user/apache-jmeter-5.6.2/bin : the exact location where I wanted to send my file
For the proposes of the demo, the .jmx script is located under the bin folder of the controller’s JMeter. JMeter remote will automatically send the test script to all its injectors.
In this particular test, we didn’t have data files (.csv for example). In that case, JMeter won’t copy the data files referenced in you test script, you will have to copy those files to each injector manually.
For more information, you can write to me in this channel : discord.gg/wNTf7nqq
whats the software you use to ssh into the ec2 instances with split screen?
tmux, can inly be used with linux. but works with wsl for windows