jmeter web压测临时端口耗尽解决办法

3月 14, 2019 |

Windows cmd->regedit
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
add MaxUserPort (DWORD) =65534

Solved “java.net.BindException: Address already in use: connect” issue on Windows


https://stackoverflow.com/questions/14194783/apache-multiple-requests-with-jmeter

linux
vi /etc/sysctl.conf need reboot
net.ipv4.tcp_max_tw_buckets = 30000
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_tw_reuse = 1
---- or
/sbin/sysctl -w net.ipv4.tcp_tw_recycle=1
/sbin/sysctl -w net.ipv4.tcp_tw_reuse=1
/sbin/sysctl -w net.ipv4.tcp_max_tw_buckets=30000

https://vincent.bernat.ch/en/blog/2014-tcp-time-wait-state-linux

Posted in: JMeter

Comments are closed.