Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
3.4.0.Final
-
None
Description
When running Wildfly 10 in macOS, I always get the error like this for the server:
WARN [org.xnio.nio.selector] (default I/O-16) XNIO008000: Received an I/O error on selection: java.io.IOException: Invalid argument
Lots and lots of them. It will block the server's response, and consume lots of CPU.
I've investigate it and found this:
https://bugs.openjdk.java.net/browse/JDK-8165000
It seems that in Java 8 "Selector.select(timeout) throws an IOException when timeout is larger than 100000000999L".
And the root cause of that is:
In JDK 8, kevent() appears to return -1 and set errno to EINVAL if the timeout is >= 100000001000L.
There should be some work around for this, and this annoying bug is indeed affect the usage of Wildfly 10 on macOS.
Please sort it out.