mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3427] frpc reconnect memory leak #2745
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#2745
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 @hqs136413 on GitHub (Apr 26, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3427
Bug Description
linux system Power on,frpc start:

frpc process:
When an exception occurs in the network,the frpc is Always reconnected
2-3minutes after:
frpc Version
0.37.0
frps Version
0.37.0
System Architecture
linux/arm32
Configurations
[common]
tls_enable = true
server_addr = xxx
server_port = xxx
privilege_token = xxx
log_level = info
log_max_days = 3
protocol = tcp
log_file = /var/log/frpc.log
tcp_mux = true
login_fail_exit = false
Logs
No response
Steps to reproduce
...
Affected area
@hqs136413 commented on GitHub (Apr 26, 2023):
@fatedier commented on GitHub (Apr 26, 2023):
First, update to the latest version.
Then, run this test for an extended period to observe if the memory usage continues to increase.
Two or three minutes are not sufficient for accurate results. It doesn't make any sense.
@hqs136413 commented on GitHub (Apr 26, 2023):
我们有长时间测试2-3天,一开始frpc进程占用4-5M,把网络断了几分钟后内存增加了2-3M,继续把网络断开,内存增加1-2M,当frpc进程内存增加到8-9M的时候,后面内存增加缓慢,网络断了一两天,也不过增加几百k,但是还是过一会累加4K左右。过一会继续累计4k。

@hqs136413 commented on GitHub (Apr 26, 2023):
断开网络 ,frpc重连的时候,一开始内存增加很快,后面趋于平缓,一点点累加。
@hqs136413 commented on GitHub (Apr 26, 2023):
你好,之前看到frp0.32.1版本有修复frpc重连导致的内存泄露 #1722(https://github.com/fatedier/frp/pull/1722/commits/68118b08e2eddd0d17dd90049a816158fd89e485) ,我还遇到一个现象,网络一直正常的时候,frpc没有一直重连,内存也会慢慢增加一点。
@github-actions[bot] commented on GitHub (May 27, 2023):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.