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

Adrien Grand commented on LUCENE-8862:
--------------------------------------

bq. your thought is that the memory tracker itself have a limit

Yes, my feeling is that it is difficult to decide when to check memory usage 
otherwise. Doing it in every collect() call would make things slower and doing 
it in setNextReader might perform the check long after the allocation actually 
happened (if it happened in collect() for instance)?


> Collector Level Dynamic Memory Accounting
> -----------------------------------------
>
>                 Key: LUCENE-8862
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8862
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Atri Sharma
>            Priority: Major
>
> Inspired from LUCENE-8855, I am thinking of adding a new interface which 
> tracks dynamic memory used by Collectors. This shall allow users to get an 
> accountability as to the memory usage of their Collectors and better plan 
> their resource capacity. This shall also allow us to add Collector level 
> limits for memory usage, thus allowing users a finer control over their 
> resources.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to