简体   繁体   中英

jmeter-no of threads and loop controller

I am running JMeter with number of threads=10,60,140 for the multiple thread groups and We are getting high response time.

If we changed recording controller to loop controller and same values given in loop count, then we are getting least response time.

Why there is a difference between them? Which response should we consider?

Threads are executed in parallel while loop is executed samplers sequentially.

Executing numerous calls in parallel on same machine versus sequentially is basically creating more stress on server (more hits per seconds).

When server is under stress there may appears waits/locks because of reaching max number of X , where X can be either database/server/resource/...

Therefore your response time will be higher when using threads over loop number.

Instead of this approaches, you probably should consider try to simulate real users behavior, see for more details an answer .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM