[GH-ISSUE #1332] bind: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full #1056

Closed
opened 2026-05-05 12:40:39 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @luyaotang on GitHub (Jul 21, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1332

问题描述:
windows版本frpc设置了后台检测,然后过了一段时间(1天多),然后就会报:
2019/07/21 21:14:25 [W] [69c55bf90e29b661] do one health check failed: Get http://192.168.xx.xxx:xxx/: dial tcp 192.168.xx.xx:xx: bind: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.

环境及配置:
版本:0.22.0
fprc的关键配置:
[zk]
type = tcp
local_ip = 192.168.22.36
local_port = 8581
health_check_type = http
health_check_url = /
health_check_interval_s = 10
health_check_max_failed = 2
health_check_timeout_s = 3
后端实际是web,但由于没有域名,所以用tcp,同时也启用了后端的服务检测。

问题分析:
尝试了google,基本说明是端口耗尽或者内存耗尽的问题。但经检查,出现问题时,不存在上述问题:
1.CPU: used 1.176471%
Mem: Total:3996 MB,Free: 1461 MB,Used:2534,Usage:63.000000%
Network Connections: count:52 (netstat -ano所有的结果统计)

Originally created by @luyaotang on GitHub (Jul 21, 2019). Original GitHub issue: https://github.com/fatedier/frp/issues/1332 问题描述: windows版本frpc设置了后台检测,然后过了一段时间(1天多),然后就会报: 2019/07/21 21:14:25 [W] [69c55bf90e29b661] do one health check failed: Get http://192.168.xx.xxx:xxx/: dial tcp 192.168.xx.xx:xx: bind: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full. 环境及配置: 版本:0.22.0 fprc的关键配置: [zk] type = tcp local_ip = 192.168.22.36 local_port = 8581 health_check_type = http health_check_url = / health_check_interval_s = 10 health_check_max_failed = 2 health_check_timeout_s = 3 后端实际是web,但由于没有域名,所以用tcp,同时也启用了后端的服务检测。 问题分析: 尝试了google,基本说明是端口耗尽或者内存耗尽的问题。但经检查,出现问题时,不存在上述问题: 1.CPU: used 1.176471% Mem: Total:3996 MB,Free: 1461 MB,Used:2534,Usage:63.000000% Network Connections: count:52 (netstat -ano所有的结果统计)
Author
Owner

@fatedier commented on GitHub (Jul 22, 2019):

请使用最新版本验证后再提问。

<!-- gh-comment-id:513622296 --> @fatedier commented on GitHub (Jul 22, 2019): 请使用最新版本验证后再提问。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#1056
No description provided.