Kazunari Nakao created DIRMINA-1167:
---------------------------------------

             Summary: mina2.0.8 NioProcessor thread make cpu 100%
                 Key: DIRMINA-1167
                 URL: https://issues.apache.org/jira/browse/DIRMINA-1167
             Project: MINA
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.0.8
         Environment: Linux version 4.18.0-193.el8.x86_64
java.version 1.8.0_202

            Reporter: Kazunari Nakao


Using SSHD (sshd-core-0.14.0) with our product, CPU 100% in NioProcessor thread.

{code:java}
"NioProcessor-11" #2262170 prio=5 os_prio=0 tid=0x00007f4ec6020800 nid=0x157b9e 
runnable [0x00007f4e9aeef000]
   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)
        - locked <0x00000000e0932158> (a sun.nio.ch.Util$3)
        - locked <0x00000000e0932148> (a java.util.Collections$UnmodifiableSet)
        - locked <0x00000000e0931f10> (a sun.nio.ch.EPollSelectorImpl)
        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
        at 
org.apache.mina.transport.socket.nio.NioProcessor.select(NioProcessor.java:97)
        at 
org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1074)
        at 
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)

   Locked ownable synchronizers:
        - <0x00000000e0a089a8> (a 
java.util.concurrent.ThreadPoolExecutor$Worker)


"NioProcessor-13" #2269881 prio=5 os_prio=0 tid=0x00007f4ec4c53800 nid=0x1628d1 
runnable [0x00007f4eb61d4000]
   java.lang.Thread.State: RUNNABLE
        at sun.nio.ch.EPollArrayWrapper.interrupt(Native Method)
        at sun.nio.ch.EPollArrayWrapper.interrupt(EPollArrayWrapper.java:317)
        at sun.nio.ch.EPollSelectorImpl.wakeup(EPollSelectorImpl.java:207)
        - locked <0x00000000e0931da0> (a java.lang.Object)
        at 
org.apache.mina.transport.socket.nio.NioProcessor.wakeup(NioProcessor.java:113)
        at 
org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1163)
        at 
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)

   Locked ownable synchronizers:
        - <0x00000000e0a1cc48> (a 
java.util.concurrent.ThreadPoolExecutor$Worker)


"NioProcessor-10" #1144555 prio=5 os_prio=0 tid=0x00007f4ec5f78000 nid=0xf3d93 
runnable [0x00007f4ea2081000]
   java.lang.Thread.State: RUNNABLE
        at sun.nio.ch.EPollArrayWrapper.interrupt(Native Method)
        at sun.nio.ch.EPollArrayWrapper.interrupt(EPollArrayWrapper.java:317)
        at sun.nio.ch.EPollSelectorImpl.wakeup(EPollSelectorImpl.java:207)
        - locked <0x00000000e0932860> (a java.lang.Object)
        at 
org.apache.mina.transport.socket.nio.NioProcessor.wakeup(NioProcessor.java:113)
        at 
org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1163)
        at 
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)

   Locked ownable synchronizers:
        - <0x00000000e0975c90> (a 
java.util.concurrent.ThreadPoolExecutor$Worker)
{code}

I am doing a machine translation, so please forgive any unnatural parts.

CPU is at 100% in 3 threads.
Is this the same bug as DIRMINA-1006? 
If it is the same as DIRMINA-1006
If it is the same as DIRMINA-1006, please let me know how to reproduce it so 
that it does not recur.

plese help.

mina2.0.9 NioProcessor thread make cpu 100%
https://issues.apache.org/jira/browse/DIRMINA-1006



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to