You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Thomas Mueller (JIRA)" <ji...@apache.org> on 2014/02/04 11:08:08 UTC
[jira] [Created] (OAK-1383) Reduce memory usage of the cache
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)