mihomo
mihomo copied to clipboard
[Bug] Linux下tun模式,Goland运行一会就会CPU 100%,必现
Verify steps
- [X] 确保你使用的是本仓库最新的的 clash 或 clash Alpha 版本 Ensure you are using the latest version of Clash or Clash Premium from this repository.
- [ ] 如果你可以自己 debug 并解决的话,提交 PR 吧 Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome.
- [ ] 我已经在 Issue Tracker 中找过我要提出的问题 I have searched on the issue tracker for a related issue.
- [ ] 我已经使用 Alpha 分支版本测试过,问题依旧存在 I have tested using the dev branch, and the issue still exists.
- [ ] 我已经仔细看过 Documentation 并无法自行解决问题 I have read the documentation and was unable to solve the issue.
- [ ] 这是 Clash 核心的问题,并非我所使用的 Clash 衍生版本(如 OpenClash、KoolClash 等)的特定问题 This is an issue of the Clash core per se, not to the derivatives of Clash, like OpenClash or KoolClash.
Clash version
2023-05-04 最新Alpha编译
What OS are you seeing the problem on?
No response
Clash config
tun:
enable: true
stack: system
auto-detect-interface: true
auto-route: true
dns-hijack:
- any:53
Clash log
No response
Description
Linux下tun模式,其他程序运行和访问外网都很正常。 打开Goland运行一会CPU就会100%,持续不下,top -H -p xxx 查看,是Goland中的 HttpClient-1-Worker-xxx 线程占用100%CPU。 IntelliJ IDEA Community Edition 也有相同问题 ,版本均为 2023.1 关闭tun模式,手动设置代理,CPU正常。 查看clash.meta 日志,无异常信息。 clash.meta版本:2023-05-04 最新Alpha编译
@th997 能否提供下复现时的 pprof 在日志 为 debug 时可通过 contrller-api 访问 下载 heap?raw=true 和 profile
是这样的吗,我今天debug时发现编译贼慢,打开管理器一看,meta把cpu占满了,我等了半小时都没下去,但是其他操作也不卡