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

mina2.0.22 NioProcessor thread make cpu 100%

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 2.0.22
    • None
    • Core
    • None
    • openjdk version "1.8.0_312"
      OpenJDK Runtime Environment (build 1.8.0_312-b07)
      OpenJDK 64-Bit Server VM (build 25.312-b07, mixed mode)
      CentOS Linux release 8.3.2011
      Kernel: Linux 4.18.0-240.1.1.el8_3.x86_64

    Description

      use mina as mobile game server demo and NioProcessor thread make cpu 100%

      thread dump:
      "NioProcessor-1" #67 prio=5 os_prio=0 tid=0x00007f9bec01b000 nid=0x466a3 runnable [0x00007f9bd4fdc000]
         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 <0x00000000b632b678> (a sun.nio.ch.Util$3)
              - locked <0x00000000b632b668> (a java.util.Collections$UnmodifiableSet)
              - locked <0x00000000b632b550> (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:112)
              at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:616)
              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)

      is that nio epollWait bug? please help

      Attachments

        1. 288075.thread.dump.txt
          39 kB
          Zhang Hua
        2. top.288075.thread.png
          76 kB
          Zhang Hua
        3. top.processor.png
          55 kB
          Zhang Hua

        Activity

          People

            Unassigned Unassigned
            zhang79 Zhang Hua
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: