Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.13
    • Fix Version/s: 2.0.14
    • Component/s: Core
    • Labels:
      None
    • Environment:
      Linux 2.6.18-409.el5
    • Flags:
      Important

      Description

      We get a lot of occurrences of this message : "Create a new selector. Selected is 0, delta = 0"
      accompanied with a memory leak. The SelectionKeyImpl in the fdToKey HashMap of the EPollSelectorImpl don't get remove.

      I suspect that the registerNewSelector() method in the org.apache.mina.transport.socket.nio.NioProcessor class should cancel the key.

        Activity

        Hide
        elapierre Eric Lapierre added a comment -

        Memory Analysis Tool screen shot

        Show
        elapierre Eric Lapierre added a comment - Memory Analysis Tool screen shot
        Hide
        elecharny Emmanuel Lecharny added a comment -

        The loop was way too rigid, creating a new Selector whenever the select() was returning 0 with a delta of 0. That would lead to some heavy CPU usage.

        Giving a chance for the loop to retry a few times solve this issue : most of the time, retrying a select immediately simply work. Now, we try up to 10 times before bailing out and creating a new Selector

        Show
        elecharny Emmanuel Lecharny added a comment - The loop was way too rigid, creating a new Selector whenever the select() was returning 0 with a delta of 0. That would lead to some heavy CPU usage. Giving a chance for the loop to retry a few times solve this issue : most of the time, retrying a select immediately simply work. Now, we try up to 10 times before bailing out and creating a new Selector
        Hide
        elapierre Eric Lapierre added a comment -

        When will 2.0.14 officially released?

        Show
        elapierre Eric Lapierre added a comment - When will 2.0.14 officially released?
        Hide
        elecharny Emmanuel Lecharny added a comment -

        It's currently being voted. If the vote is positive, expect the packages to be available on monday.

        If you want, you can test the packages and provide some feedback : https://dist.apache.org/repos/dist/dev/mina/mina/2.0.14/

        Show
        elecharny Emmanuel Lecharny added a comment - It's currently being voted. If the vote is positive, expect the packages to be available on monday. If you want, you can test the packages and provide some feedback : https://dist.apache.org/repos/dist/dev/mina/mina/2.0.14/

          People

          • Assignee:
            Unassigned
            Reporter:
            elapierre Eric Lapierre
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development