Uploaded image for project: 'Jira Service Desk Server and Data Center'
  1. Jira Service Desk Server and Data Center
  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
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: