[GH-ISSUE #4832] transport.bandwidthLimitMode如果设置为server,frps侧会出现cpu飙高,内存泄漏 #3815

Closed
opened 2026-05-05 14:26:26 -06:00 by gitea-mirror · 1 comment
Owner

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

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
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 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 14:26:26 -06:00
Author
Owner

@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.

<!-- gh-comment-id:3006623577 --> @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.
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#3815
No description provided.