Calling deploy/dashboard/paginate endpoint can result in significant memory consumption

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 8.2.0
    • Affects Version/s: 7.0.6, 7.1.4, 7.2.5, 8.0.4
    • Component/s: Deployments
    • None
    • 1
    • Severity 2 - Major

      Issue Summary

      Calling deploy/dashboard/paginate endpoint (eg. by accessing deployment dashboard) can result in significant memory consumption and garbage collection

      Steps to Reproduce

      1. Create 1000 environments
      2. Call deploy/dashboard/paginate as an anonymous user:
      curl -X GET "http://<BAMBOO_URL>/bamboo/rest/api/latest/deploy/dashboard/paginate?limit=100" 

      Expected Results

      Bamboo doesn't load into memory environments that the user can't access 

      Actual Results

      Bamboo tries to load all 1000 environments into memory at once

      Workaround

      Currently there is no known workaround for this behaviour. A workaround will be added here when available

            Assignee:
            Sylwester Jeruzal (Inactive)
            Reporter:
            Jan Majkutewicz (Inactive)
            Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: