简体   繁体   English

jmeter-没有线程和循环控制器

[英]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. 我正在为多个线程组运行JMeter,线程数= 10,60,140,我们的响应时间越来越长。

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/... 当服务器承受压力时,由于达到X最大数量,可能会出现等待/锁定,其中X可以是数据库/服务器/资源/ ...

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 . 代替这种方法,您可能应该考虑尝试模拟真实用户的行为,有关更多详细信息,请参见答案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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