Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-1019

Using same thread pool for I/O processing and request handling causes clients to hang and MINA thread pool depletion

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • pre-1.0, 1.0-RC1, 1.0-RC2, 1.0-RC3, 1.0-RC4, 1.0, 1.0.1, 1.0.2, 1.5.0
    • 1.0.3, 1.5.1
    • None
    • None

    Description

      In the ServerContext factory the same thread pool is being used to process I/O
      and request handling. This is depleting the thread pool rapidly causing the
      server to hang under certain conditions. I caught this bug on a x86_64 machine
      with multiple cores when the ReferralITest test was hanging. The right number
      of connections and requests being processed could have caused this issue to
      arrise. Regardless thankfully the issue appeared and Trustin found the cause
      for it.

      Trustin tracked the bug down to the way we misconfigured MINA's thread pools.
      He is currently fixing the problem in trunk and I suspect the same issue exists
      within the 1.0 branch.

      I suspect this could have caused serious issues in performance if not causing
      several load test clients to hang while others had requests processed. I
      recommend reassessing performance metrics once again after this fix. There
      should be a considerable boost. I think our impression that MINA was a
      bottleneck may have been attributed to this misconfiguration issue.

      Anyways once Trustin has the fix in trunk I will apply it to the 1.0 branch and
      make sure all tests pass successfully. I am assigning this issue to myself
      even though T is providing the fix so I can manage the application on the
      1.0 branch and document the results.

      Attachments

        Activity

          People

            akarasulu Alex Karasulu
            akarasulu Alex Karasulu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: