Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-1383

Reduce memory usage of the cache

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.16
    • core
    • None

    Description

      The LIRS cache calculates the estimated number of cells using the cache size and the average entry size, and allocates empty arrays accordingly.

      Currently, the LIRS cache uses a default entry size of 100 bytes, which is relatively low. Because of that, even an empty cache needs quite a lot of memory.

      I found the average size of the entries is around 2000 for our unit tests. Using this average size should reduce memory usage a lot.

      Attachments

        Activity

          People

            thomasm Thomas Mueller
            thomasm Thomas Mueller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: