Uploaded image for project: 'JIRA Service Desk Server'
  1. JIRA Service Desk Server
  2. JSDSERVER-4712

TimedPromiseExecutionRegistry causes OOM

    XMLWordPrintable

    Details

      Description

      The ArrayList can be made to grow to a huge size, but due to the nature of an ArrayList, calling remove does not actually shrink the underlying Object[], so the memory footprint remains huge, which can lead to OOM.

      Need to call trimToSize on the ArrayList, when removing timed promises from the list.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mmcmahon Matthew McMahon
                Reporter:
                astephen@atlassian.com Adrian Stephen
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: