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

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -