jmeter - How to share a huge process among threads -


i have un deployment process large number of apis.

i list of apis querying restservice returns json response

{ "count" : 10000 ,[ {api_id:"1" , api_name:"xyz"},{api_id:"2",api_name:"abc"},....,{api_id:"999",api_name:"uuf"}]} 

for each api id need perform common undeploy ..

now single thread hole process taking long time.

i want increase threads hence processing time reduced.

currently thread group shown below click see image run process expected , want share big task among threads , when thread-1 doing undeploy of api_id 3 thread-2 should not try undeploy same api_id 3 .since threads trying access same data , try same process getting errors.

now looking solution doesn't have overriding issues , want share process.

i thought of sharing among threads (1000/no of threads = chunck) , each thread start index 0 chunck , chunk+1 2*chunck ...etc unsure of implementation.

thanks.

given have extracted api id (or name) , have 1000 variables like:

api_name_1=xyz api_name_2=abc api_name_3=uuf 

you can use __counter() function increments each time it's being called no matter how many threads have each thread each iteration pick next api perform undeploy. refer next api name like:

 ${__v(api_name_${__counter(false,)})} 

counter functions

see how use counter in jmeter test article more information on different jmeter counter types , instructions on how use them.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -