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

Antonio Sanso updated SLING-4216:
---------------------------------
    Attachment: SLING-4216-patch.txt

attaching proposed patch.
Some highlight

- querying the bloom filter is skipped if the cache contains all values
- default bloom filter file size is 1024000 bytes
- bloom filter is persisted to disk every minute (only if changes happen) and 
at shutdown.
- the case of changes that might have happened in the repository while the 
instance was down is addressed rebuilding the bloomFilter (I will some 
documentation to the website on how to do it)

[~cziegeler] [~justinedelson] [~catholicon] it would be great if you can review 
the patch. 

> Limit the number of vanityPath MapEntry 
> ----------------------------------------
>
>                 Key: SLING-4216
>                 URL: https://issues.apache.org/jira/browse/SLING-4216
>             Project: Sling
>          Issue Type: Improvement
>          Components: ResourceResolver
>            Reporter: Antonio Sanso
>            Assignee: Antonio Sanso
>         Attachments: SLING-4216-patch.txt, SLING-4216-patch.txt
>
>
> At the moment there isn't any limit to the number of MapEntry that are cached 
> in memory.
> If the number of vanityPaths/alias is extremely high this can cause OOM.
> It would be good to have a way to limit the amount of memory used by the 
> MapEntry cache.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to