Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-3558

Case-insensitive bot user agent matching can have performance impact

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.6, 6.0
    • Fix Version/s: 6.1
    • Component/s: DSpace API
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      4
    • Documentation Status:
      Needed

      Description

      This ticket is an enhancement for https://jira.duraspace.org/browse/DS-3133

      When we applied this fix to a repository with many visitors and an extend bot user agent list, the server's CPU usage went through the roof. So I think that having "case-insensitive bot user agent matching" should be configurable and disabled by default.

      In addition, I think it is worth investigating if doing "StringUtils.toLowerCase" is more efficient in our case than using the case-insensitive flag.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tom.desair Tom Desair (Atmire)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: