常见问题
链接超时java.net.SocketException: No buffer space available (maximum connections reached?)
//cmd 命令查看请求
netstat -ano
//cmd 统计数量
netstat -ano|find “tcp” /i /c
数量太多存在问题
解决方法:
cmd—>regedit 进入注册表
2进入 HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Tcpip/Parameters
新建 DWORD 类型的注册表项,命名为:MaxUserPort
值数据(双击MaxUserPort提示输入值): 65534(用十进制的格式录入进去,此值的有效范围为5000-65534)
新建 DWORD 类型的注册表项,命名为:TCPTimedWaitDelay
值数据: 30(TIME_WAIT的自动断开时间,默认为4分钟);
通过以上几步操作,重新启动tomcat。
然后重启操作系统。
cmd 常用