[ 
https://issues.apache.org/jira/browse/OAK-11687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Mueller reassigned OAK-11687:
------------------------------------

    Assignee: Thomas Mueller

> DataStore FileCache Memory Usage
> --------------------------------
>
>                 Key: OAK-11687
>                 URL: https://issues.apache.org/jira/browse/OAK-11687
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>            Priority: Major
>
> If there are many small files in the datastore cache, then the FileCache can 
> use a lot of Java heap memory. This is caused by:
> * Entries smaller than 4096 bytes report memory usage of 0 to the cache.
> * Each entry is a java.io.File, which contains the full path.
> This can lead eg. to 1 GB of memory usage if there are many small files, 
> which is unexpected.
> To reduce memory usage, I think it makes sense to use just the String as the 
> key as well as the value. It will still not fully resolve the issue, but at 
> least it reduces the memory usage. Better yet would probably be to limit the 
> memory usage as well.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to