Open yanxurui opened 1 year ago
Thanks for reporting. This is unusual. I'll look into it today.
Thanks for the quick response. Without specifying num-acceptors
, 4 acceptors will be launched and each of them are comsuming 70%~100% of a core, making the fan of my Mac work crasily. This can also be reproduced in the develop branch.
So I am using develop
branch and used flags as you passed. I made a few requests through proxy.py
and now I am using it for my entire MacOS
system.
Below is a screenshot and video from the same duration
https://user-images.githubusercontent.com/126065/204133859-e5f6a131-f0e3-4f0f-b891-40addd6bb708.mov
I see with contact traffic through proxy.py
, its consumption doesn't go over 5-7%
which is expected.
Python 3.8
.I'll further try to also reproduce the scenario. If not, will ask you for more debugging information.
Stay with me :)
Thanks. I am using an old mac
It looks good when I use Python 3.10.2
@yanxurui Awesome, thanks for confirming the same. I do have an older model in office :). I'll give a try on it tomorrow and share my findings.
Check FAQs Checked.
Describe the bug I started the proxy from command line in my mac and noticed the CPU usage of the acceptor is very high even though there is zero load. Seems there is a while loop running inside the process?
To Reproduce Steps to reproduce the behavior:
Expected behavior I expect the CPU usage of the proxy process to be very low when there is no load at all. However, the process is utilizing the entire core.
Version information
Screenshots If applicable, add screenshots to help explain your problem.