上游使用socks代理无法连接时会占用大量CPU/内存
fqx opened this issue · comments
time="2020-05-28 19:33:16" level=warning msg="Failed to connect to DNS upstream: socks connect tcp 192.168.1.xx:xxxx->1.0.0.1:53: EOF"
我这台虚拟机上跑着pi-hole和overture,overture为pi-hole的上游DNS服务器。
最近出现过两次网络DNS故障,此虚拟机内存使用达到100%,CPU使用也100%。
日志里存在大量上述警告。
Debian Linux 4.19
overture 1.61
pi-hole 5.0
overture的AlternativeDNS除了用socks代理的,也有直接用tcp-tls的,不知道为什么卡在socks上面。
我怀疑1.61版有内存泄漏问题,运行几天之后overture的内存占用可以到200M左右,缓存DNS 5000条。
内存泄漏很严重, VPS 上跑的 1.61 内存爆到 1G 多了,现在换 ts-dns 在用.
Maybe that memory leak is related to the socks5, dns over tls or dns over https implementation. Luckily, I don't use any of them in my daily life and overture is stable as always.
Advanced users could try to use host:port/debug/pprof/
(v1.7-rc1) to get some necessary information about memory when that problem occurs.
By the way, talking about other project or its configuration is not that relevant to this issue.