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] 来回切换配置,导致内存泄露(疑似) 含pprof heap文件 #1250

Open
7 tasks done
dongchengjie opened this issue May 8, 2024 · 0 comments
Open
7 tasks done
Labels
bug Something isn't working

Comments

@dongchengjie
Copy link

dongchengjie commented May 8, 2024

Verify steps

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

操作系统

Windows

系统版本

21H2

Mihomo 版本

"meta":true,"version":"alpha-6d1c62b"}

配置文件

见附件

描述

使用clash verge对配置文件进行来回切换,内存使用会不断增长,且后续基本不会下降,疑似内存泄露?

操作流程让如GIF所示(文件较大)
操作GIF
heap文件如下(文件里的数字表示切换的次数后的heap文件,为使得明显,重复了50余次,最后52.gz操作后内存约800MB):
heap.zip
配置文件如下:
自用测速.txt

后续内存即便在空载状态下(由traffic和cpu占用可见),也有近400MB的占用
即使主动PUT调用debug/gc接口,也无法使内存占用下降
photo_2024-05-08_18-46-53
photo_2024-05-08_18-46-32

重现方式

来回反复切换配置文件

日志

No response

@dongchengjie dongchengjie added the bug Something isn't working label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant