mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #545] Too many open files in system BUG #424
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#424
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dgben2015 on GitHub (Nov 30, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/545
Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.
(为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。)
Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST
What version of frp are you using (./frpc -v or ./frps -v)?
[root@localhost ~]# frps -v
Frps version 0.13.0
[root@LNMP frp_0.13.0_linux_amd64]# ./frpc -v
0.13.0
What operating system and processor architecture are you using (
go env)?Frps:
frpc:
Configures you used:
FRPS:
FRPC:
Steps to reproduce the issue:
1.业务需求: 转发 内部授权系统(FRPC)到公网(FRPS), 客户端 大约 20 个,每个客户端 五秒请求一次
2.运行半个月后 FRPS服务器上的Tomcat 日志提示 "Too many open files in system" ;
3. 使用
lsof -n|awk '{print $2}'|sort|uniq -c |sort -nr|more查看 进程文件打开数量,发现frps进程 有 六万多 ,导致同服务器(FRPS) 上其他应用无法创建新的链接,触发系统报警.4.目前解决办法:定时重启frps 期待修复该问题
Describe the results you expected:
请求次数再多也不影响系统
Additional information you deem important (e.g. issue happens only occasionally):
FRPS 服务器 Linux 系统已经 不限制 文件句柄打开数量
Can you point out what caused this issue (optional)
@dgben2015 commented on GitHub (Dec 3, 2017):
该问题在 FRPC掉线(系统断电) ,但客户端 仍然在请求FRPS 时 ,可以 重现
@fatedier commented on GitHub (Dec 7, 2017):
贴一下更详细的网络连接信息。
ss, lsof 或者 netstat,处于各种状态的连接分别有多少之类的数据。
@sunyongke commented on GitHub (Oct 30, 2020):
我也是出现了这个问题。内部假设了一个sharelatex,这个软件好像和服务器之间每个一段时间要通讯一次,目前基本只有我一个人在用。服务器基本没2天就会出现too many open files 提示。