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
A lot of log will be output and consumed a lot of CPU after network is disconnected on Android devices #10590
Comments
Turn off logging for |
I hope that this is a joke. There must be a bug in Netty that causes these messages in the first place. |
There is no bug in Netty but in Java NIO. So apart from turn off logging, you can switch to Epoll mechanism. Else, no other option. :) |
I'm a beginner, could you tell me how to turn off logging for |
I will have a look but this seems to be caused by a bug in the nio implementation of android as this should really never happen |
Depends on what logger you're using. |
After I turn off logging for
CPU:
|
This is definitely an android bug. There is not much we can do unfortunally :/ |
I have a trouble about netty when I use micronaut on Android. And I reported an issue to micronaut(micronaut-projects/micronaut-core#4129). But they tell me that I should report the issue to netty.
Expected behavior
Micronaut server stopped normally.
Actual behavior
Micronaut server will be stopped, but a lot of log will be output. And this will take up a lot of CPU resource.
Log:
CPU:
Steps to reproduce
Minimal yet complete reproducer code (or URL to code)
https://github.com/igiantpanda/AndroidWebTest/tree/disconnect-issue
Netty version
4.1.48.Final (The corresponding version of Micronaut is 2.0.0)
JVM version (e.g.
java -version
)1.8
OS version (e.g.
uname -a
)Android 10 (Tested on Android emulator and OPPO Reno)
The text was updated successfully, but these errors were encountered: