Open remedynotavailable opened 1 year ago
Apparently it's an old issue that was ignored.
https://github.com/Dreamacro/clash/issues/1979#issue-1143190088
It's affecting all h2 protocol.
Maybe kindly add the option initial_windows_size
@remedynotavailable setting log level is debug, and the continuous usage of CPU is too high. Visit http://${contrller-api}/debug/pprof/profile, wait and upload the downloaded file
@remedynotavailable setting log level is debug, and the continuous usage of CPU is too high. Visit http://${contrller-api}/debug/pprof/profile, wait and upload the downloaded file
~ $ curl "http://192.168.1.1:9090/version"
{"meta":true,"version":"v1.14.4"}
~ $ curl "http://192.168.1.1:9090/debug/pprof/profile"
404 page not found
~ $
Do I need to compile it with debug tags or something?
@remedynotavailable Need to launch with log-level: debug
Running it with debug for more 3 hours already without cpu spike. Only higher ram and CPU than average. I will wait more.
Only 1 core 100% used at the moment. I will post again when all cores maxed out. profile (2).log
protocol error: received DATA after END_STREAM
. but cpu is normal.the problem only occured with internal clash dns resolver in combination with grpc.
@Skyxim can you please consider to add full grpc like sing-box. It can be included with compile time flag. I tried with sing-box it's basically the same result. High CPU and RAM after a while. compiled sing-box with with_grpc tag, the result is very stable. Tho, the performance slightly degraded. Idk maybe just placebo. Tried with speedtest just a bit lower. I tried to do it myself but stuck here and there. I'm new in golang. Thanks.
Verify steps
Clash version
1.14.3 to alpha
What OS are you seeing the problem on?
Linux
Clash config
Clash log
Description
When using grpc for any trojan/vmess/vless the CPU usage went berserk. It may not immediately pickep up but after a few minutes used for browsing the CPU stuck at 100%. I confirmed it with other proxies the problem is with grpc. Just tried with any free grpc trojan/vmess/vless found on Google. Even after changing the proxy to non grpc it wouldn't goes down. Checked the yacd dashboard there's no ongoing heavy load. It's on idle, dl and ul just around 5kbps. Only after restarting the clash process and removing the grpc proxies it would back to normal. Tried the stable version from last 2022 to alpha it still the same. Also tried boxformagisk(with clash core) for Android the issue persists.
Thanks.
Picrel