I am using Jmeter distributed testing to run JMX files in remote machines. Both are connected well and remote machine is not sending back any results to me. It says just started test and finished the test. but no results are being sent back to Master machine.
It's a communication problem between slave and master.
Ensure you set this value in JMeter user.properties file to a value different from 0, let's say 4000 and open corresponding ports 4000, 4001, 4002 :
client.rmi.localport=0
Related
I have my load generators in different VLAN's .Which I want to connect and perform Load Tesing .Kindly Suggest ways to achieve this?
I had done Jmeter distributed testing in same VLANs making 1 Master and 10 slaves . But in different VLANs I am unable to achieve this.
JMeter master communicates with slaves using RMI which works on top of TCP/IP
It means that JMeter master needs to be able to reach the slave and vice versa. Slaves don't have to "see" each other.
So you either need to set up routing between VLANs or connect master and all the slaves which are not in the same VLAN as the master to the VPN, the fastest and the easiest option is most probably Wireguard, and use tun/tap interfaces instead of normal NIC IP addresses.
More information:
Apache JMeter Distributed Testing Step-by-step
How to Perform Distributed Testing in JMeter
Remote hosts and RMI configuration
I've a distributed JMeter setup with 1 client (controller) and 2 servers (generators).
Now while a test is executing on the setup if a generator crashes in between, the controller gets hanged even after the test duration ends.
Is there a way to reconnect the controller with the generator after the generator comes up again during the same test execution?
No there is no such configuration option and it is advised to restart servers.
Usually this is due to connectivity issues between server and controller like port not open.
For reference properties have a look at:
https://jmeter.apache.org/usermanual/properties_reference.html#remote
For 1/ you can add this to user.properties:
client.continue_on_fail=true
server.exitaftertest=true
How can I find a Slave IP address to pass in case of starting Jmeter Master. As Jmeter slave has been successfully launched and waiting for a command from Master.
Anyone expertise in Jmeter help, please!
When you launch jmeter-server script it prints some diagnostic information to the stdout and this information includes the IP address the slave binds to, look for endpoint word:
See How to Perform Distributed Testing in JMeter article, it should help you to better understand JMeter's client-server execution mode
And of course you can determine the IP address by means of the underlying operating system i.e. using ipconfig command for Windows or ifconfig for Linux/Unix/MacOS
I have build a simple Process Group. It generates a FlowFile with some random stuff in it and sends it to the Nifi Remote Process Group.
This Remote Process Group is configured to send the FlowFile to localhost or in this case to my own Hostname (I have tried localhost as well).
After this the FlowFile should Appear at the "From MiNiFi" input Port and is sended to the LogAttribute. Nothing Special.
I configured to using RAW but with HTTP it neither works.
I am using the apache/nifi docker image and didn´t changed something in nifi.properties and authorizers.xml but of couse i provide you both:
nifi.properties
authorizers.xml
The Error occuring is this:
WARNING org.apache.nifi.remote.client.PeerSelector#40081613 Unable to refresh Remote Group´s peers due to Unable to communicate with remote Nifi cluster in order to determine which nodes exist in the remote cluster
I hope you can help me. I have wasted too much time with this Problem XD
In nifi.properties you have nifi.web.http.host=f4f40c87b65f so that means the hostname that NiFi is listening for requests on is f4f40c87b65f which means the URL of your RPG must be http://f4f40c87b65f:8080/nifi
In my opinion, load tests should be performed from several different IP addresses simultaneously(because of restrictions on http). Am I right?
I will do load tests for:
Number of Threads (users): 2000
Ramp-Up Period (in seconds): 10
The load doesn't necessarily have to come from different IP addresses however depending on your application nature it might be required (for example application does explicit check of origin IP address or lives behind a load balancer with session stickiness based on IP addresses or whatever)
In this case you can perform IP spoofing so each request would come from the different IP address, you can configure source IP address under "Source address" input on the "Advanced" tab of the HTTP Request sampler
See Using IP Spoofing to Simulate Requests from Different IP Addresses with JMeter for more details.
Yes you can run JMeter locally, it can be run anywhere that has a Java Virtual Machine.
Another alternative if you are interested is Gatling http://gatling.io/
To perform load test in serveral different IP address use Jmeter remote test
control multiple, remote JMeter engines from a single JMeter client. By running JMeter remotely, you can replicate a test across many low-end computers and thus simulate a larger load on the server.