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
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容