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/12/10 17:34:13 UTC

[jira] Resolved: (JCR-22) DefaultItemStateProvider contains grow-only cache

     [ http://nagoya.apache.org/jira/browse/JCR-22?page=history ]
     
Tobias Strasser resolved JCR-22:
--------------------------------

    Resolution: Fixed

fixed by revision 11518
- DefaultItemStateProvider removed and added VersionItemStateProvide
- the VSP has no cache at all right now. this might slow down versioning operations a bit, but does not consume any memory.

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

>
> The DefaultItemStateProvider class contains a private HashMap "items" which contains references to ItemState objects. The bad thing about this cache is, that it only grows, but is not being managed to forget about "unused" items.
> Example: A repository which is filled with 9350 nodes and 52813 properties grows this items map to 1'667'557 (!) entries. In this concrete case, the VM all13ates 213MB to the heap of which 57MB is referenced by the DefaultItemStateProvider.items 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