=要模擬的帶寬,如:當前4m的寬帶,只能模擬4m及以下的帶寬;設(shè)置方法:在user.properties文件,增加如下配置:#&nbs..."/>
您好,登錄后才能下訂單哦!
Jmeter自帶模擬帶寬設(shè)置,前提是當前的帶寬>=要模擬的帶寬,如:當前4m的寬帶,只能模擬4m及以下的帶寬;
設(shè)置方法:在user.properties文件,增加如下配置:
# Define characters per second > 0 to emulate slow connections httpclient.socket.http.cps=49152httpclient.socket.https.cps=49152
以上,是定義了一個Mobile data EDGE : 384 kbit/s的帶寬;
計算cps公式
cps = (target bandwidth in kbps * 1024) / 8
Network bandwidth | cps value |
Mobile data GPRS : 171 kbit/s | 21888 |
Mobile data EDGE : 384 kbit/s | 49152 |
Mobile data HSPA : 14,4 Mbp/s | 1843200 |
Mobile data HSPA+ : 21 Mbp/s | 2688000 |
Mobile data DC-HSPA+ : 42 Mbps | 5376000 |
Mobile data LTE : 150 Mbp/s | 19200000 |
WIFI 802.11a/g : 54 Mbit/s | 6912000 |
WIFI 802.11n : 600 Mbit/s | 76800000 |
Ethernet LAN ; 10 Mbit/s | 1280000 |
Fast Ethernet : 100 Mbit/s | 12800000 |
Gigabit Ethernet : 1 Gbit/s | 128000000 |
10 Gigabit Ethernet : 10 Gbit/s | 1280000000 |
100 Gigabit Ethernet : 100 Gbit/s | 12800000000 |
WAN modems V.92 modems : 56 kbit/s | 7168 |
ADSL : 8 Mbit/s | 1024000 |
ADSL2 : 12 Mbit/s | 1536000 |
ADSL2+ : 24 Mbit/s | 3072000 |
Ensure you use HttpClient 3.1 or HttpClient 4 implementations
Configure bandwidth by defining the 2 properties above in <jmeter home>/bin/user.properties
免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。