jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martijn Hendriks (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-1186) Improve estimation of retained memory size of caches managed by CacheManager
Date Wed, 24 Oct 2007 12:54:51 GMT
Improve estimation of retained memory size of caches managed by CacheManager
----------------------------------------------------------------------------

                 Key: JCR-1186
                 URL: https://issues.apache.org/jira/browse/JCR-1186
             Project: Jackrabbit
          Issue Type: Improvement
          Components: jackrabbit-core
    Affects Versions: 1.3.3
            Reporter: Martijn Hendriks


Currently, the estimation of the sizes of the caches that the CacheManager manages is not
very accurate. The sizes of properties are estimated in PropertyState.calculateMemoryFootprint()
to be 350 + values.length * 100. This is really bad when you have a lot of non-binary properties
that are significantly larger than 100 bytes. 

Proposed solution: Extend InternalValue and BlobFileValue with a much more accurate estimation
of the retained memory and use this in PropertyState.calculateMemoryFootprint(). This would
give a much better estimation of the retained size of the caches.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message