-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Unusual high number of 'sun.nio.ch.EPollArrayWrapper.epollWait' threads in runnable state #3711
Comments
What Jetty version? Jetty creates a fixed number of selectors, where the number is either explicitly configured by users, or defaulted with some heuristic based on the number of cores. A wild guess is that you create multiple instances of |
Thank You @sbordet for the pointers. Let me check and get back. |
@ajames-branch news? |
I have similar issue with vertx+netty "vert.x-eventloop-thread-1" #21626 prio=5 os_prio=0 tid=0x00007fa8997cd000 nid=0x3fbe runnable [0x00007fa77e8b6000] "vert.x-eventloop-thread-0" #21625 prio=5 os_prio=0 tid=0x00007fa8997ca800 nid=0x3fbd runnable [0x00007fa77e9b7000] |
Closing as no further information was provided. |
One of our spark streaming application is seeing unusual high number of following threads in RUNNABLE state. I have seen as high as 22K such threads for a process. The number keeps on increasing and never comes down. Eventually the process is oom-killed by kernel. Java native memory tracker showed that memory allocated to threads were ever increasing. I suspect the following thread is causing memory leak eventually leading to oom killer.
`priority:5 - threadId:0x00007fde00075800 - nativeId:0x1df6 - nativeId (decimal):7670 - state:RUNNABLE
stackTrace:
java.lang.Thread.State: RUNNABLE
at sun.nio.ch.EPollArrayWrapper.epollWait(Native Method)
at sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:269)
at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:93)
at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86)
at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:101)
at org.eclipse.jetty.io.ManagedSelector$SelectorProducer.select(ManagedSelector.java:243)
at org.eclipse.jetty.io.ManagedSelector$SelectorProducer.produce(ManagedSelector.java:191)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:249)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.execute(ExecuteProduceConsume.java:100)
at org.eclipse.jetty.io.ManagedSelector.run(ManagedSelector.java:147)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
at java.lang.Thread.run(Thread.java:748)`
The text was updated successfully, but these errors were encountered: