Status: Open (View Workflow)
Affects Version/s: 3.4.0.Final
Fix Version/s: None
Darwin 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
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:
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.