You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Tobias Strasser (JIRA)" <ji...@apache.org> on 2004/11/27 15:29:27 UTC

[jira] Assigned: (JCR-23) PersistentVersionManager contains grow-only cache

     [ http://nagoya.apache.org/jira/browse/JCR-23?page=history ]

Tobias Strasser reassigned JCR-23:
----------------------------------

    Assign To: Tobias Strasser

as mentioned in jcr-20, a sophisticated caching is not implemented yet. the versioning is still in a prototype development phase and those issues are well known.

> PersistentVersionManager contains grow-only cache
> -------------------------------------------------
>
>          Key: JCR-23
>          URL: http://nagoya.apache.org/jira/browse/JCR-23
>      Project: Jackrabbit
>         Type: Bug
>  Environment: Jackrabbit SVN 106295
>     Reporter: Felix Meschberger
>     Assignee: Tobias Strasser
>     Priority: Critical

>
> The PersistentVersionManager class contains a private HashMap "histories" which contains references to InternalVersionHistory objects. The bad thing about this cache is, that it only grows, but is not being managed to forget about "unused" histories. This is even badder, as the class has support for on-demand loading of version histories.
> Example: A repository which is filled with 9350 nodes and 52813 properties grows this histories map to 1'222'030 (!) entries. In this concrete case, the VM allocates 213MB to the heap of which 41MB is referenced by the PersistentVersionManager.histories map.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira