Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 疑似内存泄漏 #1467

Closed
5 of 7 tasks
Ptilopsis01 opened this issue Aug 23, 2024 · 18 comments
Closed
5 of 7 tasks

[Bug] 疑似内存泄漏 #1467

Ptilopsis01 opened this issue Aug 23, 2024 · 18 comments
Labels
invalid This doesn't seem right more info needed

Comments

@Ptilopsis01
Copy link

Ptilopsis01 commented Aug 23, 2024

Verify steps

  • 我已经阅读了 文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
  • 我未仔细看过 文档 并解决问题
  • 我未在 Issue Tracker 中寻找过我要提出的问题
  • 我已经使用最新的 Alpha 分支版本测试过,问题依旧存在
  • 我提供了可以在本地重现该问题的服务器、客户端配置文件与流程,而不是一个脱敏的复杂客户端配置文件。
  • 我提供了可用于重现我报告的错误的最简配置,而不是依赖远程服务器、TUN、图形界面客户端或者其他闭源软件。
  • 我提供了完整的配置文件与日志,而不是出于对自身智力的自信而仅提供了部分认为有用的部分。

操作系统

No response

系统版本

win11 26100.1586

Mihomo 版本

v1.18.7

配置文件

mode: rule
mixed-port: 7897
allow-lan: true
log-level: info
ipv6: true
external-controller: 127.0.0.1:9097
secret: ''
profile:
  store-selected: true
dns:
  use-system-hosts: false
  enable: true
  enhanced-mode: fake-ip
  fake-ip-range: 198.18.0.1/16
  nameserver:
  - 114.114.114.114
  - 223.5.5.5
  - 8.8.8.8
  fallback: []
  fake-ip-filter:
  - dns.msftncsi.com
  - www.msftncsi.com
  - www.msftconnecttest.com
tun:
  stack: gvisor
  device: Clash_verge
  auto-route: true
  auto-detect-interface: true
  dns-hijack:
  - any:53
  strict-route: false
  mtu: 1500
  enable: true

proxies:
- xxx

proxy-groups:
- xxx

rules:
- xxx

描述

clash-verge-rev/clash-verge-rev#1619

重现方式

clash-verge-rev/clash-verge-rev#1619

日志

2024-08-27-2003.log

heap.zip

@Ptilopsis01 Ptilopsis01 added the bug Something isn't working label Aug 23, 2024
@xishang0128
Copy link
Contributor

#405

@xishang0128 xishang0128 added invalid This doesn't seem right more info needed and removed bug Something isn't working labels Aug 23, 2024
@younijiuhao876
Copy link

300多M就内存泄露吗,我一直二百多,稳定200多。你有一直涨上去?

@Ptilopsis01
Copy link
Author

300多M就内存泄露吗,我一直二百多,稳定200多。你有一直涨上去?

是的,一直涨到500+还在涨,然后我就把核心重启了,重启之后一会又涨到300+,再重启一次才正常

@younijiuhao876
Copy link

300多M就内存泄露吗,我一直二百多,稳定200多。你有一直涨上去?

是的,一直涨到500+还在涨,然后我就把核心重启了,重启之后一会又涨到300+,再重启一次才正常

那可以提供一下内存快照,让作者帮忙看看。

@AnyWAT

This comment was marked as off-topic.

@Ptilopsis01
Copy link
Author

300多M就内存泄露吗,我一直二百多,稳定200多。你有一直涨上去?

是的,一直涨到500+还在涨,然后我就把核心重启了,重启之后一会又涨到300+,再重启一次才正常

那可以提供一下内存快照,让作者帮忙看看。

我还一直没复现出来

@AnyWAT

This comment was marked as off-topic.

@lovitus
Copy link

lovitus commented Aug 26, 2024

memory leak
两天漏成这样. 1.8.7 内核.
希望在内存炸了,或者线程数炸了以后,能自动重启内核.
bug太难修了, 作者也太辛苦. 或许考虑加上异常重启功能, 可以至少不跑挂机器.

@xishang0128
Copy link
Contributor

未提供日志以及heap,此issues将被关闭,待提供后再重新打开

@xishang0128 xishang0128 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 27, 2024
@Ptilopsis01
Copy link
Author

#405

我访问文中的网址提示404
image

@xishang0128
Copy link
Contributor

#405

我访问文中的网址提示404 image

image

@Ptilopsis01
Copy link
Author

已更新日志和heap,以及该问题在使用bitcomet时必定触发

@PuerNya
Copy link

PuerNya commented Aug 27, 2024

@Ptilopsis01 通过代理进行 pt 下载炸内存是预期行为,请自己想办法绕过

@Ptilopsis01
Copy link
Author

但我设置成对该应用全部direct了啊😂之前用cfw的时候也没出现过这类问题()

@lovitus
Copy link

lovitus commented Aug 28, 2024

@Ptilopsis01 通过代理进行 pt 下载炸内存是预期行为,请自己想办法绕过

用户是需要自己有能力处理规则和异常。
但是核心经常各种原因炸内存,可能需要有灾难恢复的机制, 比如内存超限制重启,或者连接数超限制重启。
bug是修不完的, 但是路由器经常死机可能体验影响更大。

@Skyxim
Copy link
Collaborator

Skyxim commented Aug 28, 2024

@lovitus https://pkg.go.dev/runtime#hdr-Environment_Variables

参考并设置 GOMEMLIMIT 环境变量

@AnyWAT

This comment was marked as off-topic.

@AnyWAT

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right more info needed
Projects
None yet
Development

No branches or pull requests

7 participants