Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-5277

Performance: per thread script resolver (admin session) is always created even if cache is hit

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • Servlets
    • None
    • Patch

    Description

      Since SLING-3441, for every request, a new admin / privileged session is created in the SlingServletResolver. It is created before the script/servlet cache is checked, so in most cases when the cache is hit it is never used, but the cost of creating an extra session (which can vary, especially with concurrent traffic) is incurred.

      The per thread script resolver can be created lazily instead of directly in the event to avoid this.

      Attachments

        1. SLING-5277-new.patch
          10 kB
          Alexander Klimetschek
        2. SLING-5277.patch
          9 kB
          Alexander Klimetschek

        Activity

          People

            Unassigned Unassigned
            alexander.klimetschek Alexander Klimetschek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: