JMeter 集合點設定之Synchronizing Timer的使用

來源:互聯網
上載者:User

Jmeter集合點是通過Synchronizing Timer這個定時器來實現的,雖然簡單,但是在使用的時候需要注意一些點,下面詳細說明。

1、布局設定

 



註:

1.把SynchronizingTimer放置於請求之前,通常Jmeter按樹狀結構順序執行

2.說明:

名稱:自訂名稱

 

Number of Simulated Users to Groupby:每次釋放的線程數量。如果設定為0,等同於設定為線程租中的線程數量。

 

Timeout in milliseconds:

如果設定為0,Timer將會等待線程數達到了"Number of Simultaneous Users toGroup"中設定的值才釋放。如果大於0,那麼如果超過Timeout inmilliseconds中設定的最大等待時間(毫秒為單位)後還沒達到"Number of Simultaneous Users toGroup"中設定的值,Timer將不再等待,釋放已到達的線程。預設為0

 

【注意】:

    如果設定Timeout in milliseconds為0,且線程數量無法達到"Number of Simultaneous Users toGroup by"中設定的值,那麼Test將無限等待,除非手動終止。

 

Synchronizing timer 僅作用於同一個JVM中的線程,所以,如果使用並發測試,確保"Number of Simultaneous Users toGroup by"中設定的值不大於它所線上程組包含的使用者數。

 

(原文:Synchronizing timer blocks only within one JVM, soif using Distributed testing ensure you never set "Number ofSimultaneous Users to Group by" to a value superior to the numberof users of its containing Thread group considering 1 injectoronly)

 

2、如上,添加相關請求,結果樹等,進行必要設定後,運行查看效果

通過結果樹可以看到,請求是批量執行的

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.