You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Andrzej Bialecki (JIRA)" <ji...@apache.org> on 2019/08/01 19:53:00 UTC

[jira] [Commented] (SOLR-9658) Caches should have an optional way to clean if idle for 'x' mins

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

Andrzej Bialecki  commented on SOLR-9658:
-----------------------------------------

There's a trade-off between the cache size and hit ratio - we would like to use as much memory as possible to get a good hit ratio, but this is costly so we also want to use as little memory as possible while retaining a good hit ratio ;)

So there's a certain sweet-spot for dynamically adjusting cache size, where we use just enough memory to get a good hit ratio. If hit ratio falls below a threshold we can reduce the memory (because this means that many entries are useless), if hit ratio is high then we can increase the memory because the cache is full.

> Caches should have an optional way to clean if idle for 'x' mins
> ----------------------------------------------------------------
>
>                 Key: SOLR-9658
>                 URL: https://issues.apache.org/jira/browse/SOLR-9658
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Noble Paul
>            Assignee: Andrzej Bialecki 
>            Priority: Major
>
> If a cache is idle for long, it consumes precious memory. It should be configurable to clear the cache if it was not accessed for 'x' secs. The cache configuration can have an extra config {{maxIdleTime}} . if we wish it to the cleaned after 10 mins of inactivity set it to {{maxIdleTime=600}}. [~dragonsinth] would it be a solution for the memory leak you mentioned?



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org