address already in use, the socket binding exception for JMeter on Windows

https://stackoverflow.com/questions/14194783/apache-multiple-requests-with-jmeter
https://www.baselogic.com/2011/11/23/solved-java-net-bindexception-address-use-connect-issue-windows/

原因

Windows 只允许使用1024-5000端口来发送TCP/IP请求,回收这些端口需要花费最多4分钟的时间

解决办法

更改TCP请求的的最大端口数

  • 打开注册表编辑器: Win+R打开运行对话框, 输入regedit
  • 找到注册表项:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
  • 在表项上, 点击右键 -> 新建 -> DWORD值, 并输入以下内容, 并重启电脑:
Name Value Base
MaxUserPort 65534 Decimal
image.png

你可能感兴趣的:(address already in use, the socket binding exception for JMeter on Windows)