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

mina2.0.9 NioProcessor thread make cpu 100%

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0.9
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Environment:
      Linux version 2.6.32-358.el6.x86_64 (Red Hat 4.4.7-3)
      java version "1.7.0_67"
      Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
      Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

      Description

      running as client after the Exception (java.io.IOException: Connection reset by peer) appeared , cpu 100%

      thread dump:
      "NioProcessor-931" prio=10 tid=0x00007f3788004800 nid=0xd41 runnable [0x00007f394f4f3000]
      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:79)
      at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)

      • locked <0x00000007842118f0> (a sun.nio.ch.Util$2)
      • locked <0x00000007842118e0> (a java.util.Collections$UnmodifiableSet)
      • locked <0x00000007842114b0> (a sun.nio.ch.EPollSelectorImpl)
        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:98)
        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:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)

      Locked ownable synchronizers:

      • <0x0000000784211210> (a java.util.concurrent.ThreadPoolExecutor$Worker)

      is that nio epollWait bug?

        Attachments

        1. cpu100_01.png
          59 kB
          briokyd
        2. cpu100_02.png
          35 kB
          briokyd
        3. cpu100_03.png
          31 kB
          briokyd
        4. threadDump78658_20150211_151742.log
          158 kB
          briokyd
        5. DIRMINA-1006.patch
          7 kB
          Radovan Semancik

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              briokyd briokyd
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: