Continualy JBoss internal errors: Caused by: java.io.IOException: File descriptor in bad state

Solution Verified - Updated -

Issue

  • After a period of time (sometimes as little as 2 days), and load, JBoss throws the following exception.
2017-06-01 01:38:31,907 [stderr] ERROR  - Exception in thread "default I/O-160" java.lang.InternalError: java.io.IOException: File descriptor in bad state
2017-06-01 01:38:31,908 [stderr] ERROR  -      at sun.nio.ch.EventPortWrapper.release(EventPortWrapper.java:235)
2017-06-01 01:38:31,908 [stderr] ERROR  -      at sun.nio.ch.EventPortSelectorImpl.implDereg(EventPortSelectorImpl.java:144)
2017-06-01 01:38:31,908 [stderr] ERROR  -      at sun.nio.ch.SelectorImpl.processDeregisterQueue(SelectorImpl.java:149)
2017-06-01 01:38:31,908 [stderr] ERROR  -      at sun.nio.ch.EventPortSelectorImpl.doSelect(EventPortSelectorImpl.java:75)
2017-06-01 01:38:31,908 [stderr] ERROR  -      at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86)
2017-06-01 01:38:31,908 [stderr] ERROR  -      at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
2017-06-01 01:38:31,909 [stderr] ERROR  -      at org.xnio.nio.WorkerThread.run(WorkerThread.java:528)
2017-06-01 01:38:31,909 [stderr] ERROR  - Caused by: java.io.IOException: File descriptor in bad state
2017-06-01 01:38:31,909 [stderr] ERROR  -      at sun.nio.ch.SolarisEventPort.port_dissociate(Native Method)
2017-06-01 01:38:31,909 [stderr] ERROR  -      at sun.nio.ch.EventPortWrapper.release(EventPortWrapper.java:233)
2017-06-01 01:38:31,909 [stderr] ERROR  -      ... 6 more
  • xnio.nio.selector is instantiating the EventPortSelectorImpl, and ignoring both the set properties . . . So somewhere within XNIO is ignoring the properties or not using them?
JAVA_OPTS:  -server -d64 -Xms4096m -Xmx4096m -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=512m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.modules.policy-permissions=true -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.DevPollSelectorProvider -Dxnio.nio.selector.main=sun.nio.ch.DevPollSelectorProvider

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.0.3
  • Oracle JDK
    • 8u74
    • 8u131
  • Solaris 10 9/10 s10s_u9wos_14a SPARC

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content