question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JDK epoll bug in 0.4.3

See original GitHub issue

i use jeromq 0.4.3 with jdk 8. sometimes Poller.run get 100% cpu usage without any message. i add some debug info in the Poller and find that rc = selector.select(timeout); always get rc==1. so it can’t hit maybeRebuildSelector method.

netty solve the issue by only use a counter, and ignore the ‘rc’.

sorry for my poor english

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:24 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
milosonatorcommented, Feb 6, 2019

@fredoboulo Thanks for getting back on this. I’ve not worked on that code in a while, so I haven’t been affected by this in a while. I’ll make sure to (at least attempt to) make a small reproduction sample. (Maybe the latest JVM fixes the issue?)

2reactions
ferozedcommented, Dec 8, 2018

I am also experiencing this bug with JDK8 on Linux. Our stack looks as follows for the thread consuming 100% cpu

2018-12-07_18:03:45.24915 "iothread-2" #21 daemon prio=5 os_prio=0 tid=0x00007f3ae0cfd800 nid=0x4a3b runnable [0x00007f3afac07000]
2018-12-07_18:03:45.24915    java.lang.Thread.State: RUNNABLE
2018-12-07_18:03:45.24915       at sun.nio.ch.EPollArrayWrapper.epollWait(Native Method)
2018-12-07_18:03:45.24915       at sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:269)
2018-12-07_18:03:45.24915       at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:93)
2018-12-07_18:03:45.24915       at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86)
2018-12-07_18:03:45.24916       - locked <0x00000005eaef8698> (a sun.nio.ch.Util$3)
2018-12-07_18:03:45.24916       - locked <0x00000005eaef8650> (a java.util.Collections$UnmodifiableSet)
2018-12-07_18:03:45.24916       - locked <0x00000005eb156da8> (a sun.nio.ch.EPollSelectorImpl)
2018-12-07_18:03:45.24916       at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
2018-12-07_18:03:45.24916       at zmq.poll.Poller.run(Poller.java:234)
2018-12-07_18:03:45.24917       at java.lang.Thread.run(Thread.java:748)

Any ideas how we can mitigate it? We are using ZMQ to forward error/access logs to splunk. I dont see any error messages in the log files that could point to the root cause.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uses of Class zmq.PollItem (JeroMQ 0.4.0 API) - javadoc.io
Polling on items with given selector CAUTION: This could be affected by jdk epoll bug. static int, ZMQ. poll(Selector selector, PollItem[] items, ...
Read more >
JDK-6481709 (se) epoll based Selector throws java.io ... - Bug ID
The bug arises when the file descriptor in a pending registration is recycled as non-pollable file descriptor. The fix requires that the pending...
Read more >
Bug listing with status RESOLVED with resolution OBSOLETE ...
Bug:1523 - "[IDEA] Offload work by distributing trivial ebuild maintenance to users, introduce a simple stability voting system and have a core team...
Read more >
Forge is not opening or creating a client - Support & Bug Reports ...
i just installed java and yet the same problem, i open the file and it opens it in ... Considering library net.minecraftforge:srgutils:0.4.3 File...
Read more >
pinentry bug fix and enhancement update
... #1263740) - Add support for Octave 3.8 (bug #1136487) This update is available via the Unbreakable Linux Network (ULN) and the Oracle...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found