Thomas Mueller created OAK-1383:
-----------------------------------

             Summary: Reduce memory usage of the cache
                 Key: OAK-1383
                 URL: https://issues.apache.org/jira/browse/OAK-1383
             Project: Jackrabbit Oak
          Issue Type: Bug
            Reporter: Thomas Mueller
            Assignee: Thomas Mueller


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.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to