Is there any way to see which data has been picked by the http request/api from csv data set config by Jmeter slave machines as i have 55 users defined in the csv file and thread group users also 55, loop count 1 with ramp-up-period 5 and there is one more csv file which has ids 1 to 6 for another api. As per expectation it supposed to run for 55 times only, however it is running 110 times. When i run the same file with same setup from Jmeter GUI locally can see only 55 threads has been run. Please suggest.
0
votes
1 Answers
1
votes
Each JMeter engine is totally independent, so
- if you have 55 threads defined in one Thread Group having one sampler and 1 slave - you will have 55 requests
- if you have 55 threads defined in one Thread group and 2 slaves you will have 110 requests
- if you have 3 slaves - it will be 165 requests
- etc.
You can use Sample Variables property to add the variable from the CSV to the .jtl results file so you will be able to see the variable value for each and every request. The property can be defined either by adding the next line to user.properties file on each slave machine
#assuming your CSV Variable reference name is "foo"
sample_variables=foo
Alternatively you can pass it via -J command-line argument like:
jmeter -Jsample_variables=foo -Dserver_port=1099 -s -j jmeter-server.log
See Apache JMeter Properties Customization Guide for more information on working with different JMeter properties types
I would recommend adding __machineName() or __machineIP() function to the Thread Group or Sampler label so you would be able to distinguish requests from difference slaves.