mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #4832] transport.bandwidthLimitMode如果设置为server,frps侧会出现cpu飙高,内存泄漏 #3815
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#3815
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 @zhuyeh on GitHub (Jun 11, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4832
Bug Description
frpc proxy设置如下:
proxies
name = "web"
type = "http"
localPort = 8080
transport.bandwidthLimit = "20MB"
transport.bandwidthLimitMode = "server"
customDomains = ["www.yourdomain.com"]
frps 设置如下:
bindPort = 4000
log.level = "info"
log.to = "/data/frp/logs/frps.log"
auth.method = "token"
auth.token = "12345678"
webServer.addr = "0.0.0.0"
webServer.port = 7500
webServer.user = "admin"
webServer.password = "admin"
vhostHTTPPort = 8002
vhostHTTPSPort = 9002
100路并发Get下载,观察到frps侧初始cpu迅速飙升,且内存快速增长,CPU能飙高到80%左右,内存使用1.8G左右,之后会发现CPU又快速回落,甚至到0,frpc侧应该是受frps影响,cpu虽然没有飙高,但cpu也会回落到0,cpu波动较大。
反复测试后两次后,CPU表现类似,但frps的内存始终在增长,最终耗尽,被系统OOM掉
frpc Version
0.62.1
frps Version
0.62.1
System Architecture
linux/arm64
Configurations
配置如上文
Logs
No response
Steps to reproduce
...
Affected area
@github-actions[bot] commented on GitHub (Jun 26, 2025):
Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.