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

DSpaceObjectManager unnecessarily keeps references to DSpace objects

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.7.1, 1.7.2, 1.8.0
    • Fix Version/s: 1.8.1, 3.0
    • Component/s: XMLUI
    • Labels:
      None
    • Attachments:
      1
    • Comments:
      3
    • Documentation Status:
      Not Required

      Description

      DSpaceObjectManager keeps an ArrayList with a reference to every DSpaceObject instance it encounters. The DSpaceObject instances aren't used for anything but take up heap memory. The effect is particularly noticeable with Discovery enabled because several Discovery components each have their own copy of DSpaceObjectManager.

      The attached patch removes the ArrayList (and tidies up the code slightly). On a test instance, applying this patch brought down heap usage from 600 MB down to 70 MB (heap size measured a few minutes after starting up DSpace, with comparable activity).

        Attachments

          Activity

            People

            • Assignee:
              schweer Andrea Schweer
              Reporter:
              schweer Andrea Schweer
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: