Apache JMeter 在 windows 和 linux 中显示相同测试的不同结果
Apache JMeter showing different result in windows and linux for same test
我安装了 apache jemeter 5.0,
i) 在 windows 本地
ii) 在 aws ec2 服务器中。
在本地 windows 对于 2000 个用户,它显示 5% 的错误,屏幕截图:
错误屏幕:
但是我运行在AWS EC2中同样测试了**20,000(注意两万),但它没有显示任何错误(错误为0百分比)**
2018-11-27 08:27:51,464 INFO o.a.j.r.Summariser: summary + 1730 in 00:00:21 = 80.7/s Avg: 1091 Min: 10 Max: 17343 Err: 0 (0.00%) Active: 0 Started: 20000 Finished: 20000
2018-11-27 08:27:51,464 INFO o.a.j.r.Summariser: summary = 60000 in 00:06:05 = 164.5/s Avg: 351 Min: 10 Max: 17343 Err: 0 (0.00%)
Windows 有 limit 个并发 TCP 连接
When a client makes a connect() call to make a connection to a server, then the client invisible/implicit bind the socket to a local dynamic (anonymous, ephemeral, short-lived) port number. The default range for dynamic ports in Windows is 1024 to 5000, thus giving 3977 outbound concurrent connections for each IP Address. It is possible to change the upper limit with this DWORD registry key:
[HKEY_LOCAL_MACHINE \System \CurrentControlSet \Services \Tcpip \Parameters]
MaxUserPort = 5000 (Default = 5000, Max = 65534)
我安装了 apache jemeter 5.0, i) 在 windows 本地 ii) 在 aws ec2 服务器中。
在本地 windows 对于 2000 个用户,它显示 5% 的错误,屏幕截图:
错误屏幕:
但是我运行在AWS EC2中同样测试了**20,000(注意两万),但它没有显示任何错误(错误为0百分比)**
2018-11-27 08:27:51,464 INFO o.a.j.r.Summariser: summary + 1730 in 00:00:21 = 80.7/s Avg: 1091 Min: 10 Max: 17343 Err: 0 (0.00%) Active: 0 Started: 20000 Finished: 20000
2018-11-27 08:27:51,464 INFO o.a.j.r.Summariser: summary = 60000 in 00:06:05 = 164.5/s Avg: 351 Min: 10 Max: 17343 Err: 0 (0.00%)
Windows 有 limit 个并发 TCP 连接
When a client makes a connect() call to make a connection to a server, then the client invisible/implicit bind the socket to a local dynamic (anonymous, ephemeral, short-lived) port number. The default range for dynamic ports in Windows is 1024 to 5000, thus giving 3977 outbound concurrent connections for each IP Address. It is possible to change the upper limit with this DWORD registry key:
[HKEY_LOCAL_MACHINE \System \CurrentControlSet \Services \Tcpip \Parameters] MaxUserPort = 5000 (Default = 5000, Max = 65534)