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.