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

Performance recession when invoke session.write concurrent

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.7
    • Fix Version/s: 2.0.8
    • Component/s: Core
    • Labels:

      Description

      In org.apache.mina.core.filterchainDefaultIoFilterChain, code around line number 600,
      <code>if (writeRequestQueue.size() == 0 )</code>
      will raise performance problem in high concurrent situation, Mina default use ConcurrentLinkedQueue as writeRequestQueue, but size() of this queue is not a constant-time operation, suggest to use <code>if (writeRequestQueue.isEmpty(s))</code> instead of it.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: