Uploaded image for project: 'Advanced Cache'
  1. Advanced Cache
  2. MGNLADVCACHE-114

PersonalizedCachePolicy impacts performance due to interaction with JackRabbit

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Neutral Neutral
    • None
    • None
    • None
    • Yes

      PersonalizedCachePolicy injects context provider and accesses the website workspace in order to account for page variants during caching, typically logging in as anonymous (in production end user scenarios).

      Under heavy load this makes a lot concurrent users attempt to log in to JR via its user manager and blocking themselves (user manager uses a single synchronised session to manage log in credentials, see org.apache.jackrabbit.core.security.user.UserManagerImpl#session).

      Using system context alleviates the issue somewhat (admin credentials are handled via shortcut), but later during interaction with the repo, we end up locking ourselves on some of its synchronised parts.

      Can we optimise the policy so that it at least reduces/scales interactions with the repository?

        Acceptance criteria

              Unassigned Unassigned
              apchelintcev Aleksandr Pchelintcev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Work Started:

                  Task DoD