Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-1167

mina2.0.8 NioProcessor thread make cpu 100%

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.0.8
    • None
    • Core
    • None
    • Linux version 4.18.0-193.el8.x86_64
      java.version 1.8.0_202

    Description

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

      "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)
      

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            kzunari Kazunari Nakao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: