[GH-ISSUE #1293] too many open files #1022

Closed
opened 2026-05-05 12:39:33 -06:00 by gitea-mirror · 0 comments
Owner

Originally created by @mengpengfei on GitHub (Jun 21, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1293

2019/06/21 14:25:33 [W] [http.go:223] http: proxy error: context canceled
2019/06/21 14:25:33 [W] [resource.go:62] read custom 404 page error: open /data/soft/frp_0.27.0_linux_amd64/404.html: too many open files
2019/06/21 14:25:33 [I] [proxy.go:82] [xxxxx] [webhttp] get a new work connection: [120.244.141.72:16197]
2019/06/21 14:25:33 [W] [http.go:223] http: proxy error: context canceled
2019/06/21 14:25:33 [W] [resource.go:62] read custom 404 page error: open /data/soft/frp_0.27.0_linux_amd64/404.html: too many open files
2019/06/21 14:25:33 [I] [proxy.go:82] [9b321c874d470eab] [webhttp] get a new work connection: [120.244.141.72:16197]
2019/06/21 14:25:33 [W] [http.go:223] http: proxy error: context canceled
2019/06/21 14:25:33 [W] [resource.go:62] read custom 404 page error: open /data/soft/frp_0.27.0_linux_amd64/404.html: too many open files
2019/06/21 14:25:33 [I] [proxy.go:82] [9b321c874d470eab] [webhttp] get a new work connection:

[120.244.141.72:16197]
2019/06/21 14:25:33 [W] [http.go:223] http: proxy error: context canceled
2019/06/21 14:25:33 [W] [resource.go:62] read custom 404 page error: open /data/soft/frp_0.27.0_linux_amd64/404.html: too many open files
2019/06/21 14:25:33 [I] [proxy.go:82] [9b321c874d470eab] [webhttp] get a new work connection: [120.244.141.72:16197]
2019/06/21 14:25:33 [W] [http.go:223] http: proxy error: context canceled
2019/06/21 14:25:33 [W] [resource.go:62] read custom 404 page error: open /data/soft/frp_0.27.0_linux_amd64/404.html: too many open files

连接数超过1024一直包too many open files,但是操作系统限制已经解除了,为什么程序还一直报

[root@www frp_0.27.0_linux_amd64]# ps -ef|grep frps
root 48441 1 0 14:32 ? 00:00:05 /data/soft/frp_0.27.0_linux_amd64/frps -c /data/soft/frp_0.27.0_linux_amd64/frps.ini
root 57508 47755 0 15:03 pts/0 00:00:00 grep --color=auto frps
[root@www frp_0.27.0_linux_amd64]# ulimit -a 48441
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 15033
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1000000
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 15033
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

Originally created by @mengpengfei on GitHub (Jun 21, 2019). Original GitHub issue: https://github.com/fatedier/frp/issues/1293 2019/06/21 14:25:33 [W] [http.go:223] http: proxy error: context canceled 2019/06/21 14:25:33 [W] [resource.go:62] read custom 404 page error: open /data/soft/frp_0.27.0_linux_amd64/404.html: too many open files 2019/06/21 14:25:33 [I] [proxy.go:82] [xxxxx] [webhttp] get a new work connection: [120.244.141.72:16197] 2019/06/21 14:25:33 [W] [http.go:223] http: proxy error: context canceled 2019/06/21 14:25:33 [W] [resource.go:62] read custom 404 page error: open /data/soft/frp_0.27.0_linux_amd64/404.html: too many open files 2019/06/21 14:25:33 [I] [proxy.go:82] [9b321c874d470eab] [webhttp] get a new work connection: [120.244.141.72:16197] 2019/06/21 14:25:33 [W] [http.go:223] http: proxy error: context canceled 2019/06/21 14:25:33 [W] [resource.go:62] read custom 404 page error: open /data/soft/frp_0.27.0_linux_amd64/404.html: too many open files 2019/06/21 14:25:33 [I] [proxy.go:82] [9b321c874d470eab] [webhttp] get a new work connection: [120.244.141.72:16197] 2019/06/21 14:25:33 [W] [http.go:223] http: proxy error: context canceled 2019/06/21 14:25:33 [W] [resource.go:62] read custom 404 page error: open /data/soft/frp_0.27.0_linux_amd64/404.html: too many open files 2019/06/21 14:25:33 [I] [proxy.go:82] [9b321c874d470eab] [webhttp] get a new work connection: [120.244.141.72:16197] 2019/06/21 14:25:33 [W] [http.go:223] http: proxy error: context canceled 2019/06/21 14:25:33 [W] [resource.go:62] read custom 404 page error: open /data/soft/frp_0.27.0_linux_amd64/404.html: too many open files 连接数超过1024一直包too many open files,但是操作系统限制已经解除了,为什么程序还一直报 [root@www frp_0.27.0_linux_amd64]# ps -ef|grep frps root 48441 1 0 14:32 ? 00:00:05 /data/soft/frp_0.27.0_linux_amd64/frps -c /data/soft/frp_0.27.0_linux_amd64/frps.ini root 57508 47755 0 15:03 pts/0 00:00:00 grep --color=auto frps [root@www frp_0.27.0_linux_amd64]# ulimit -a 48441 core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 15033 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 1000000 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 15033 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited
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#1022
No description provided.