-
1. Re: Thread Stuck at sun.nio.ch.EPollArrayWrapper.epollWait
thammoud Apr 27, 2017 1:01 PM (in response to thammoud)Actually, killing the thread causes the server to recover. Why would one rouge thread hang the entire http subsystem? Any pointers will be greatly appreciated.
-
2. Re: Thread Stuck at sun.nio.ch.EPollArrayWrapper.epollWait
ctomc Apr 28, 2017 5:52 AM (in response to thammoud)Can you try with latest JDK8 update as u65 is quite old nowdays
-
3. Re: Thread Stuck at sun.nio.ch.EPollArrayWrapper.epollWait
thammoud Apr 28, 2017 8:10 AM (in response to ctomc)Hi Tomaz,
We are planning on doing just that as we saw some JDK bugs in that area.
-
4. Re: Thread Stuck at sun.nio.ch.EPollArrayWrapper.epollWait
thammoud May 3, 2017 4:39 AM (in response to thammoud)We upgraded to the latest JDK. Same issue applies. xnio hung on epoll.
-
5. Re: Thread Stuck at sun.nio.ch.EPollArrayWrapper.epollWait
thammoud May 3, 2017 5:31 PM (in response to thammoud)We believe that this is the root cause.
-
6. Re: Thread Stuck at sun.nio.ch.EPollArrayWrapper.epollWait
ctomc May 3, 2017 5:44 PM (in response to thammoud)You also use quite old linux kernel.
Try updating it to latest for EL6, or even better if possible migrate to EL7
running something like
yum -y update yum rpm
yum -y clean all
yum -y update
should get you to latest EL6 release and kernel.
-
7. Re: Thread Stuck at sun.nio.ch.EPollArrayWrapper.epollWait
thammoud May 3, 2017 6:02 PM (in response to ctomc)Hi Tomaz,
What does the kernel have to do with it? The code clearly has a race condition that is leading to this behavior.
-
8. Re: Thread Stuck at sun.nio.ch.EPollArrayWrapper.epollWait
ctomc May 4, 2017 5:41 AM (in response to thammoud)It has everything to do with it.
Java NIO utilizes low level features of the operating system to provide such good performance.
Epoll where you are seeing problem is backed by native code in kernel and is quite possible problem lies there.
-
9. Re: Thread Stuck at sun.nio.ch.EPollArrayWrapper.epollWait
thammoud Jul 26, 2017 9:30 AM (in response to ctomc)I have updated [XNIO-265] Accept thread blocks forever on java.nio.channels.SelectableChannel.register - JBoss Issue Tracker to fully explain the root cause of this.
-
10. Re: Thread Stuck at sun.nio.ch.EPollArrayWrapper.epollWait
ranjith525 Oct 31, 2018 2:59 AM (in response to thammoud)