-
Notifications
You must be signed in to change notification settings - Fork 1.9k
High cpu utilization with ktor on Android using GlobalScope.launch
#1046
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
It looks like the same issue as in #840, I will investigate further |
have same issue with ktor - here is stack trace for thread which does heavy cpu utilization
related code is:
|
@qwwdfsad when your investigation will be ended? |
I'm having the same issue as @MrPowerGamerBR above with a code like this:
I've also tried to force close the read channel like
…but it seems useless. |
Is there's any progress on this issue? This is making me avoid using some libraries that rely on coroutines (like ktor, even tho I really like it) and because this is a major bug it becomes kinda difficult to stay with ktor if it makes your application consume 100% CPU for no reason while any other library works fine. |
Yes, we are targeting the fix to 1.3.2 |
Looks like this fix didn't make it into 1.3.2. Any updated forecasts? |
As announced in Slack, we've shifted all the changes for 1.3.2 to 1.3.3 :( 1.3.2 release had no API changes or bug fixes at all and contained only changes necessary for Spring 5.2 GA (some of the reactive Flow bridges became public). Meanwhile, most of the work is done and now I am mostly in evaluation and small performance tweaks phase. |
I'm having the same issue using ktor. 100% cpu utilization Its appears randomly and stays at 100% until process is restarted. Is there any workaround until 1.3.3?
` |
I've tried to close the
|
This issue looks like https://stackoverflow.com/questions/25922809/glassfish-4-grizzly-threads-heavy-cpu-usage |
It looks like the issue is being worked on there. |
After switching to the fixed thread pool dispatcher in ktor(ktorio/ktor@990ccfb)
GlobalScope.launch
cpu utilization is much higher thanclient.launch
:The text was updated successfully, but these errors were encountered: