High CPU in NIO Selector calls

Solution Verified - Updated -

Issue

  • We are seeing high CPU in remoting threads making calls on NIO Selectors, for example:
"Remoting "smisqa2:smisqa2-a:MANAGEMENT" read-1" prio=3 tid=0x0000000101b3e000 nid=0x18 runnable [0xffffffff71efe000]
    java.lang.Thread.State: RUNNABLE
      at sun.nio.ch.DevPollArrayWrapper.poll0(Native Method)
      at sun.nio.ch.DevPollArrayWrapper.poll(DevPollArrayWrapper.java:220)
      at sun.nio.ch.DevPollSelectorImpl.doSelect(DevPollSelectorImpl.java:84)
      at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)
      - locked <0xffffffff586bcc20> (a sun.nio.ch.Util$2)
      - locked <0xffffffff586bcc10> (a java.util.Collections$UnmodifiableSet)
      - locked <0xffffffff586b7f90> (a sun.nio.ch.DevPollSelectorImpl)
      at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:98)
      at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:102)
      at org.xnio.nio.WorkerThread.run(WorkerThread.java:153)

Or:

"Thread-83" prio=6 tid=0x00000000285d9000 nid=0x1398 runnable [0x000000002e55f000]
   java.lang.Thread.State: RUNNABLE
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(WindowsSelectorImpl.java:295)
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(WindowsSelectorImpl.java:277)
    at sun.nio.ch.WindowsSelectorImpl.doSelect(WindowsSelectorImpl.java:158)
    at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)
    - locked <0x00000006d1693fa0> (a sun.nio.ch.Util$2)
    - locked <0x00000006d1693f90> (a java.util.Collections$UnmodifiableSet)
    - locked <0x00000006d1693fb0> (a sun.nio.ch.WindowsSelectorImpl)
    at sun.nio.ch.SelectorImpl.selectNow(SelectorImpl.java:106)
    at org.jboss.sun.net.httpserver.ServerImpl$Dispatcher.run(ServerImpl.java:445)
    at java.lang.Thread.run(Thread.java:722)

Environment

  • JBoss Enterprise Application Platform (EAP) 6
  • Java 6

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