Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-1186

Improve estimation of retained memory size of caches managed by CacheManager

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.3.3
    • None
    • jackrabbit-core
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            martijnh Martijn Hendriks
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: