Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-3883

Improve channel manager performance when jcr session login is slow

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 5.3.0
    • None
    • None
    • Flagged

    Description

      In preview mode, CmsSecurityValve was designed/implemented to get a new JCR session every time by using the stored JCR credentials of the CMS user. When using LDAP plugin however, this behavior results in a LDAP communication for each request, causing a very poor performance in channel preview.

      While the default behavior cannot be improved in shorter term, it may be possible to fix the performance issue by storing a wrapper of the JCR session object into an HttpSession attribute and reuse it whenever available. The JCR session stored in HttpSession should not to be logged out after request processing (e.g., CleanupValve). Also, the wrapper object should implement javax.servlet.http.HttpSessionBindingListener to log out when unbound from the http session (in order to avoid a potential memory leak).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cchen Charlie Chen
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: