Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-24696

MultiDirectorySession should be pool-aware or at least pool-enabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: 8.10, 9.10, 10.1
    • Fix Version/s: None
    • Component/s: Directory
    • Tags:
    • Backlog priority:
      600
    • Sprint:
      nxcore 10.2.6
    • Story Points:
      5

      Description

      A full-multi (SQL, LDAP) directories configuration has been setup and called with 300 users. We end up with 300 LDAP connections whether or not we set -Dcom.sun.jndi.ldap.connect.pool.maxsize=10 in $JAVA_OPTS in nuxeo.conf.

      It would be expected to end up 300 sequential invocations with less than 300 LDAP connections and that LDAP pooling would work (The configuration <poolingEnabled> is enabled (true) by default for LDAP)

      Debugging shows that MultiDirectorySession is instantiated upon every request making pooling ineffective in this setup at Nuxeo level.

        Attachments

        1. MultiDirectorySession not pool-aware.png
          MultiDirectorySession not pool-aware.png
          183 kB
        2. new Session(1).png
          new Session(1).png
          155 kB
        3. new Session(2).png
          new Session(2).png
          162 kB
        4. new Session(3).png
          new Session(3).png
          163 kB
        5. session null.png
          session null.png
          190 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days
                  2d