mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #1677] 用ab压测后,内存未释放 #1327
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#1327
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 @xiong114 on GitHub (Feb 25, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1677
Originally assigned to: @blizard863 on GitHub.
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 将会直接关闭。)
(请不要在 issue 评论中出现无意义的 加1,我也是 等内容,将会被直接删除。)
(由于个人精力有限,和系统环境,网络环境等相关的求助问题请转至其他论坛或社交平台。)
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)?
frpc 0.31.2
frps 0.31.2
What operating system and processor architecture are you using (
go env)?腾讯云 linux centos7.2 64bit
frps、frpc在同一个机器上
Configures you used:
frps:
[common]
bind_port = 7000
vhost_http_port = 6081
subdomain_host = xx.xx //域名
log_file = ./frps.log
log_level = debug
frpc:
[common]
server_addr = xx.xx //同服务器端subdomain_host一致
server_port = 7000
log_file = ./frpc.log
log_level = debug
[http]
type = http
local_port = 7788
subdomain = bbb
Steps to reproduce the issue:
1.将域名xx.xx解析到服务器ip,按照如上配置启动frps、frpc
setsid ./frps -c frps.ini &
setsid ./frpc -c frpc.ini &
(在本机启动nginx web服务器,监听7788端口)
2.ps查看当前frps、frpc使用内存情况
[root@VM_168_17_centos frp_0.31.2_linux_amd64]# ps -aux | grep frp
root 22086 0.0 0.5 112536 11144 ? Ssl 15:22 0:00 ./frps -c frps.ini
root 22117 0.0 0.2 111700 4740 ? Ssl 15:22 0:00 ./frpc -c frpc.ini
3.在另一个linux系统的机器上进行ab压测
ab -c 2000 -n 10000 http://bbb.xx.xx:6081/
4.测试完成后,ps查看内存情况
[root@VM_168_17_centos frp_0.31.2_linux_amd64]# ps -aux | grep frp
root 22086 0.6 9.4 252656 177888 ? Ssl 15:22 0:04 ./frps -c frps.ini
root 22117 0.5 7.0 250620 132388 ? Ssl 15:22 0:04 ./frpc -c frpc.ini
Describe the results you received:
压测完成后,frps、frpc进程占用内存没有释放(下次再使用ab压测时,如并发数小于这次,则内 存无明显增加)。
Describe the results you expected:
压测完成后,内存能释放
Additional information you deem important (e.g. issue happens only occasionally):
Can you point out what caused this issue (optional)