mihomo icon indicating copy to clipboard operation
mihomo copied to clipboard

[Bug] 使用最新1.18.1 致使电脑内存占用极大

Open lbcake opened this issue 1 year ago • 10 comments

Verify steps

  • [X] 确保你使用的是本仓库最新的的 mihomo 或 mihomo Alpha 版本 Ensure you are using the latest version of Mihomo or Mihomo Alpha from this repository.
  • [X] 如果你可以自己 debug 并解决的话,提交 PR 吧 Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome.
  • [X] 我已经在 Issue Tracker 中找过我要提出的问题 I have searched on the issue tracker for a related issue.
  • [X] 我已经使用 Alpha 分支版本测试过,问题依旧存在 I have tested using the dev branch, and the issue still exists.
  • [X] 我已经仔细看过 Documentation 并无法自行解决问题 I have read the documentation and was unable to solve the issue.
  • [X] 这是 Mihomo 核心的问题,并非我所使用的 Mihomo 衍生版本(如 OpenMihomo、KoolMihomo 等)的特定问题 This is an issue of the Mihomo core per se, not to the derivatives of Mihomo, like OpenMihomo or KoolMihomo.

Mihomo version

1.18.1

What OS are you seeing the problem on?

Windows

Mihomo config

https://github.com/clash-verge-rev/clash-verge-rev/issues/488

https://github.com/clash-verge-rev/clash-verge-rev/issues/511

Mihomo log

No response

Description

使用 clash-verge-rev 切换meta的最新内核 当订阅里存在hy2 刷新订阅 内存直接猛增100M+

使用上内存可能会猛增到上G

lbcake avatar Mar 10 '24 07:03 lbcake

@lbcake h2是什么,http/2?另外内存问题上传上传heap

xishang0128 avatar Mar 10 '24 07:03 xishang0128

@lbcake h2是什么,http/2?另外内存问题上传上传heap

hy2协议

lbcake avatar Mar 10 '24 07:03 lbcake

我也遇到同样的问题。 image

wjs876046992 avatar Mar 13 '24 15:03 wjs876046992

我也遇到同样的问题。 image

准确地讲,是开启tun模式才会。

wjs876046992 avatar Mar 13 '24 15:03 wjs876046992

我也遇到同样的问题。 image

上传你的heap 直接回复上边的 xishang0128

lbcake avatar Mar 15 '24 13:03 lbcake

遇到了同样的情况,开了tun模式之后几分钟后内存占用到达4G-6G 同时连接里存在了大量的上传流量

FujiiTaki avatar Mar 17 '24 13:03 FujiiTaki

最新的内核. 开启tun ,一分钟用了11G ram, 而且还在继续加.

image

lovitus avatar Apr 10 '24 02:04 lovitus

我也是,上传速度满了,然后没网,tun开关好多次最后好了,不知道是什么原因

nodokasaki avatar Apr 14 '24 02:04 nodokasaki

我发现开启ipv6之后才会出现这种情况,关闭之后没有再遇到过大量上传和内存高占用的情况

FujiiTaki avatar Apr 14 '24 12:04 FujiiTaki

https://github.com/MetaCubeX/mihomo/commit/16fadd24418ea3606b57b793f1f6ce14b56ffb01

尝试最新测试版本

Skyxim avatar Apr 14 '24 12:04 Skyxim