2017-09-05 187 views
1

鑑於我有一個JMeter測試腳本,每分鐘可以有200個事務(正在運行的線程)的恆定吞吐量,並且我有兩個由JMeter主控制的將執行該腳本的從站,所產生的吞吐量會翻倍還是會JMeter共享從站之間的負載,導致仍然是200TPM?使用JMeter從站時如何計算吞吐量?

乾杯, 凱

回答

2

我找到了答案上http://jmeter.apache.org/usermanual/remote-test.html

Note: The same test plan is run by all the servers. JMeter does not distribute the load between servers, each runs the full test plan. So if you set 1000 Threads and have 6 JMeter server, you end up injecting 6000 Threads.

+0

如果您需要從您的控制器分發服務器之間的負載(所以在上例中,您將獲得1000個線程而不是6000個線程,因爲服務器是獨立的),請嘗試使用[智能計](https://www.smartmeter.io /)。它也可以在這些服務器之間共享數據。 [信息}(https://www.smartmeter.io/documentation#toc-distributed-mode) – klingac

0

JMeter的奴隸完全獨立野獸因此,他們不知道對方什麼使這兩個節點會產生200 TMP,因此你總共會得到400。增加額外的節點將增加額外的200 TMP。

儘管它的名字Constant Throughput Timer並不一定是「常量」,則可以使用__P() function${__P(TPS,200)}定義吞吐量默認值,並修改它要麼當你開始通過像-G命令行選項測試:

jmeter -GTPS=100 -n -r -t ... 

甚至在您的測試使用Beanshell Server運行時也會這樣做。

請參閱Apache JMeter Properties Customization Guide瞭解關於JMeter Properties概念的更多信息。