-
Notifications
You must be signed in to change notification settings - Fork 1.9k
IO: CoroutineScheduler: high CPU usage for Worker.cpuWorkerIdle on an idle system #525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the report, I'll take a look. |
I am using the default scheduler and I switch on |
Let's clarify: your application is CPU-idle and does I/O, you've profiled it with visualvm (btw, sampler or profiler mode?) and noticed that 48% of execution time is spent within Is it a CPU usage of visualvm profile or 48% of actual CPU consumption (which is shown by In general, if application does only I/O (which doesn't contribute anything to CPU consumption), then it's perfectly fine if most of the application CPU usage (which is a little in comparison with available CPU on the machine) is spent withing scheduler, as I/O code doesn't end up in CPU profile. But if your application is completely idle or this is 48% of real CPU usage, then it is a serious problem. |
The profiled server is in development mode on my laptop. If I pause the docker container then the CPU goes low, if I unpause the conteiner all CPU's cores go to 100% (measured with |
Profile result attached
|
Possibly related to #524? |
Stack from Android (when Hope it will help. |
I updated this library to version 0.25.0, I detected an abnormal CPU usage on my laptop with "AMD PRO A12-8800B R7, 12 Compute Cores 4C+8G" cpu.
VisualVM shows 48% of CPU usage is for
16% is
12% is
This has happened after some idle hours.
openjdk version "10.0.1" 2018-04-17
OpenJDK Runtime Environment (build 10.0.1+10-Debian-2)
OpenJDK 64-Bit Server VM (build 10.0.1+10-Debian-2, mixed mode)
The text was updated successfully, but these errors were encountered: