Unusually high CPU consumption
lixuanhng opened this issue · comments
What version of gRPC and what language are you using?
grpcio 1.42.0 py37hce63b2e_0 defaults
grpcio-tools 1.16.1 py37h2531618_0 defaults
using python
What operating system (Linux, Windows,...) and version?
Linux version 3.10.0-693.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) ) #1 SMP Tue Aug 22 21:09:27 UTC 2017
And my machine gets 80 cores of CPU
What runtime / compiler are you using (e.g. python version or version of gcc)
python 3.7.13
What did you do?
I tried to use grpc framework to create a server. When ran the script that covers grpc, I found the related process always using approximately all cpus (like 7666 %CPU from command [top], given by 80 cores) and affect others badly.
What I expect to know?
I am wondering whether there is a controlled parameter to limit the use of cpu, like only using certain 40% cpu?
CPU usage this high is not expected and not designed. Would you be willing to produce a profile using cProfile to help us figure out where this high CPU usage is coming from?
More than 30 days have passed since label "disposition/requires reporter action" was added. Closing this issue. Please feel free to re-open/create a new issue if this is still relevant.