Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-2647

Default value of 0 for session.validationinterval leads to poor performance

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Highest Highest
    • 2.3.4
    • None
    • None
    • None

      The default value of 0 for session.validationinterval leads to poor performance. As the documentation says, it means that every single incoming request to the application will need to make at least one request out to Crowd. Currently when using SSO (i.e. the Crowd authenticator) it makes 2 connections to Crowd per request. One to validate the SSO token and one to get the SSO cookie configuration (see CrowdHttpAuthenticatorImpl#isAuthenticated) Since Confluence does this in a filter, it means even requests to fetch CSS, JS and other resource files make 2 requests. I measured the dashboard in Confluence 3.3 make 38 requests to Crowd in a single page load.

      We should really change the default value in the bundled properties file (and update the documentation) to a non-zero value so it looks up the user from the session until the validation interval is reached.

            [CWD-2647] Default value of 0 for session.validationinterval leads to poor performance

            Adrian Castillo made changes -
            Remote Link Original: This issue links to "BDEV-3246 (Atlassian JIRA Extranet - Special Projects)" [ 47620 ] New: This issue links to "BDEV-3246 (Hello Jira)" [ 47620 ]
            Andriy Yakovlev [Atlassian] made changes -
            Remote Link Original: This issue links to "Page (Confluence)" [ 607250 ]
            Andriy Yakovlev [Atlassian] made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 607250 ]
            Rodrigo Baldasso made changes -
            Remote Link Original: This issue links to "Page (Confluence)" [ 604427 ]
            Rodrigo Baldasso made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 604427 ]
            Andriy Yakovlev [Atlassian] made changes -
            Remote Link Original: This issue links to "Page (Confluence)" [ 539593 ]
            Andriy Yakovlev [Atlassian] made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 539593 ]
            Andriy Yakovlev [Atlassian] made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 467627 ]
            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 - restricted [ 1509665 ] New: JAC Bug Workflow v3 [ 3364717 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            Robert Chang added a comment - A relevant KB has been created: https://confluence.atlassian.com/crowdkb/applications-connected-with-crowd-sso-sending-huge-amount-of-requests-to-crowd-827343714.html

              jwalton joe
              nbhawnani Niraj Bhawnani
              Affected customers:
              0 This affects my team
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 4h
                  4h
                  Remaining:
                  Remaining Estimate - 4h
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified