Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-1958

Session.logout performance poor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.1
    • 1.0.2, 1.1.0
    • jcr
    • linux jdk1.7 b25 and b55.

    Description

      Problem:
      Session.logout was observed to take 14% of time in a performance test of a reasonably real-world load.

      Method:
      Use the attached sling junit test case to run 8 concurrent instances of the test. profile with YourKit or similar and see >50% time taken by logout.

      Expected:
      Logout should be practically free.

      Solution:
      The attached patch avoids a bug in guava-15 (still present in guava-17 the latest) where the former use of addCallback triggered many CancellationExceptions when sessions were quickly created and logged out.

      Attachments

        1. oak-1958.diff
          3 kB
          Rob Ryan
        2. sessionConcurrencyTest.zip
          8 kB
          Rob Ryan

        Issue Links

          Activity

            People

              mduerig Michael Dürig
              rryan@adobe.com Rob Ryan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: