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/06 20:26:00 UTC

[jira] [Comment Edited] (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=16901430#comment-16901430 ] 

Andrzej Bialecki  edited comment on SOLR-9658 at 8/6/19 8:25 PM:
-----------------------------------------------------------------

The latest patch adds also support for {{maxIdleTime}} to {{FastLRUCache}}.
Similarly to {{LFUCache}} if there's a cleanup thread it will wake up every {{maxIdleTime}} to sweep and evict entries regardless of {{put}}.


was (Author: ab):
The latest patch adds also support for {{maxIdleTime}} to {{FastLRUCache}}.

> 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
>         Attachments: SOLR-9658.patch, SOLR-9658.patch
>
>
> 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