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.

            [JSDSERVER-4712] TimedPromiseExecutionRegistry causes OOM

            Owen made changes -
            Workflow Original: JSD Bug Workflow v5 - TEMP [ 2304860 ] New: JAC Bug Workflow v3 [ 3126113 ]
            Status Original: Done [ 10044 ] New: Closed [ 6 ]
            Owen made changes -
            Symptom Severity Original: Critical [ 14430 ] New: Severity 1 - Critical [ 15830 ]
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v5 [ 2058776 ] New: JSD Bug Workflow v5 - TEMP [ 2304860 ]
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v5 - TEMP [ 2056126 ] New: JSD Bug Workflow v5 [ 2058776 ]
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v5 [ 1955557 ] New: JSD Bug Workflow v5 - TEMP [ 2056126 ]
            Nhi Nguyen (Inactive) made changes -
            Remote Link New: This issue links to "Page (Extranet)" [ 283866 ]
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v4 [ 1642640 ] New: JSD Bug Workflow v5 [ 1955557 ]
            Kevin Liou made changes -
            Affects Version/s New: 3.0.10 [ 60548 ]
            Kevin Liou made changes -
            Priority Original: Low [ 4 ] New: Highest [ 1 ]
            Steve Haffenden (Inactive) made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Untriaged [ 11672 ] New: Done [ 10044 ]

              mmcmahon Matthew McMahon (Inactive)
              astephen@atlassian.com Adrian Stephen
              Affected customers:
              0 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: