简体   繁体   English

与常量计时器有关的jmeter最终线程组

[英]jmeter ultimate thread group with relation to constant timer

  1. Scenario : a. 方案: Ultimate Thread Group : Thread count :100, Startup time : 60, Hold load : 300 b. 最终线程组:线程数:100,启动时间:60,保持负载:300 b。 If there are 10 Http(s) request in the script and each is having 1 sec of constant timer, total constant time value = 10 seconds. 如果脚本中有10个Http(s)请求,并且每个请求都有1秒的恒定计时器,则恒定时间总值= 10秒。 In the above scenario the hold time will become 300 +(100 *10) OR 300 +(10) OR 300 -(100 *10) OR 300 -(10) 在上述情况下,保持时间将变为300 +(100 * 10)或300 +(10)或300-(100 * 10)或300-(10)

Your timers on samplers don't have anything to do with your total test time. 您的采样器计时器与您的总测试时间无关。 So in your above example, it will simply be 60+300 seconds. 因此,在您上面的示例中,只需60 + 300秒。

When a thread finishes its 10 requests, it will start again. 当线程完成其10个请求时,它将再次启动。 So once your test is ramped up, each thread will execute them 30 times. 因此,一旦测试量增加,每个线程将执行30次。 If you increased your timers, the 10 request would take longer to complete, so fewer iterations of them would be done- but it wouldn't change your duration. 如果您增加计时器,则10个请求将需要更长的时间才能完成,因此它们的迭代次数将减少-但不会改变您的持续时间。

Timers and holdtime works independently, they are not related. 计时器和保持时间是独立工作的,它们无关。

In your example- 在您的示例中-

Test will start loading Threads as test begins and by end of 60 seconds all 100 threads would be up. 测试将在测试开始时开始加载线程,到60秒结束时,所有100个线程都将启动。

Individual thread execution depends on response of each request sent on server (in your case 10 requests/thread), so constant timer will wait for 1 seconds before sending next request of same thread to server. 单个线程的执行取决于服务器上发送的每个请求的响应(在您的情况下为10个请求/线程),因此常量计时器将等待1秒,然后再将同一线程的下一个请求发送到服务器。

So, hold time ensures same 100 users(threads) load on server for specified period. 因此,保持时间可确保在指定时间段内服务器上的相同100个用户(线程)负载。 As and when one thread completes its execution cycles (all 10 requests), it will add another thread to maintain same load during test time specified as hold time. 当一个线程完成其执行周期(所有10个请求)时,它将添加另一个线程以在指定为保持时间的测试时间内维持相同的负载。

Test will get completed in 30+60 = 90 seconds. 测试将在30 + 60 = 90秒内完成。

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

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