VaalaCat / frp-panel

a multi node frp webui and for [frp](https://github.com/fatedier/frp) server and client management, which makes this project a Cloudflare Tunnel or Tailscale Funnel open source alternative
GNU General Public License v3.0
646 stars 46 forks source link

感觉内存管理上好像有问题 #17

Closed 1186669517 closed 7 months ago

1186669517 commented 8 months ago

长时间运行8天 frp服务端在512mb的机器中内存占用能达到46%,重启服务之后7%,在一台2g内存的机器上运行master端同样上八天,内存大概350mb,占用19%左右

1186669517 commented 8 months ago

master端重启之后占用内存约为19mb

duncai233 commented 8 months ago

我也碰到了

VaalaCat commented 7 months ago

程序在运行时会缓存一部分数据,默认设置最大100M,可以通过 CACHE_SIZE 配置调节

https://github.com/VaalaCat/frp-panel/blob/5a952a65c2ec0fb4b841d5cb1636ef93bab936c3/conf/settings.go#L29