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

Performance recession when invoke session.write concurrent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.7
    • 2.0.8
    • Core

    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

            Unassigned Unassigned
            g_mark Mark
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: