You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Timothee Maret (Jira)" <ji...@apache.org> on 2020/01/08 18:51:00 UTC

[jira] [Commented] (SLING-8968) Parametrise publisher queue cache parameters for large producers

    [ https://issues.apache.org/jira/browse/SLING-8968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17010920#comment-17010920 ] 

Timothee Maret commented on SLING-8968:
---------------------------------------

I measured the average heap size consumed by a cached entry using YourKit, 500B. Assuming large producers yield 2 entry/s on average and aiming at a heap memory of 10MB, the parameters would be 20'000 entries over 2.8h.

> Parametrise publisher queue cache parameters for large producers
> ----------------------------------------------------------------
>
>                 Key: SLING-8968
>                 URL: https://issues.apache.org/jira/browse/SLING-8968
>             Project: Sling
>          Issue Type: Improvement
>          Components: Content Distribution
>    Affects Versions: Content Distribution Journal Core 0.1.6
>            Reporter: Timothee Maret
>            Assignee: Timothee Maret
>            Priority: Major
>             Fix For: Content Distribution Journal Core 0.1.8
>
>
> The [PubQueueCacheService|https://github.com/apache/sling-org-apache-sling-distribution-journal/blob/master/src/main/java/org/apache/sling/distribution/journal/impl/queue/impl/PubQueueCacheService.java] is currently setup to evict the cache every 5s if the cache size is bigger than 1000 entries. This issue covers adjusting the frequency and size to minimise cache re-build for large content distributors.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)