You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Jörg Hoh (JIRA)" <ji...@apache.org> on 2017/03/11 21:43:04 UTC

[jira] [Created] (SLING-6635) Implement LRU Cache for SlingServletResolver

Jörg Hoh created SLING-6635:
-------------------------------

             Summary: Implement LRU Cache for SlingServletResolver
                 Key: SLING-6635
                 URL: https://issues.apache.org/jira/browse/SLING-6635
             Project: Sling
          Issue Type: Improvement
          Components: Servlets
    Affects Versions: Servlets Resolver 2.4.10
            Reporter: Jörg Hoh


During the servlet resolution all results are stored for later reuse in a ConcurrentHashMap. In parallel the maximum cache size is configured and always controlled.

If this max cachesize is reached, no more results are stored in the hashmap; if the load pattern has changed, this could result in a case, that many/all servlet resolutions are no longer stored in cache.

It would be good, if the cache employs a LRU strategy to keep often resolved AbstractResourceCollectors in cache and avoid the penalty of cache misses. Limiting the cache size would still be useful and required.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)