DSpaceObjectManager unnecessarily keeps references to DSpace objects
--------------------------------------------------------------------

                 Key: DS-1070
                 URL: https://jira.duraspace.org/browse/DS-1070
             Project: DSpace
          Issue Type: Bug
          Components: XMLUI
    Affects Versions: 1.8.0, 1.7.2, 1.7.1, 1.7.0, 1.6.2, 1.6.1, 1.6.0, 1.5.2, 
1.5.1, 1.5.0, post-1.8.0
            Reporter: Andrea Schweer
            Assignee: Andrea Schweer
            Priority: Major
         Attachments: objectmanager.patch

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).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.duraspace.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to