Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-773

Reduce pressure on memory by ensuring that classes with a finalize method make their fields available for garbage collection at earliest possible opportunity

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.0
    • Component/s: DSpace API
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      0
    • Documentation Status:
      Not Required

      Description

      There are a couple of classes in DSpace that have a finalize() method - most notably Context().

      When those objects are discarded, any objects referenced by their fields can not be garbage collected until the finalizer queue has processed it.

      By reducing the amount of values retained where possible (ie. by cleaning the Context cache on a complete or abort), we can reduce the pressure on the memory by allowing the objects to be garbage collected before the finalizer thread has processed the referencing objects.

        Attachments

          Activity

            People

            • Assignee:
              grahamtriggs Graham Triggs
              Reporter:
              grahamtriggs Graham Triggs
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: