Uploaded image for project: 'Pentaho Data Integration - Kettle'
  1. Pentaho Data Integration - Kettle
  2. PDI-9242

Memory Use: JobEntryResults subList holds a reference to the original list

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Severity: High
    • Resolution: Fixed
    • Affects Version/s: 4.4.1, 5.0.0 GA (5.0.0 GA Suite Release)
    • Component/s: Job
    • Labels:
      None
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.

      Description

      In org.pentaho.di.job.Job, there is a setting for max job entries logged. When the maximum is reached, the subList method is used to reduce the size of the list. This method creates a view into the old list to make it appear to be the new size, holding a reference to the full sized list. Since a linked list is used, repeatedly calling removeFirst would be a performant way to reduce the size of the list and wouldn't hold references to things that are no longer needed.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            brosander Bryan Rosander (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: