# Very large filter cache

**URL:** <https://discuss.elastic.co/t/very-large-filter-cache/22492>\
**Category:** Elasticsearch\
**Created:** [March 3, 2015, 3:56pm UTC](https://discuss.elastic.co/t/very-large-filter-cache/22492 "2015-03-03T15:56:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roy\_Reznik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roy_reznik/32/773_2.png) [@Roy\_Reznik](https://discuss.elastic.co/u/Roy_Reznik)\
**Post date:** [March 3, 2015, 3:56pm UTC](https://discuss.elastic.co/t/very-large-filter-cache/22492/1 "2015-03-03T15:56:45Z")

</div>

Hi,

We have a very high number of filter evictions per query (~10).  
I tried to enlarge the cache size to 30%, but still, I see this number at  
~9.  
I'm trying to debug this (I think we might have huge queries, effecting  
this) - so I wanted to dump the cache, or something similar to try to  
understand what is wasting all that space.  
Is there any way I can do this? Or any other recommended way to debug?

Thanks.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3e1f8191-08d2-4a59-8d27-0ac7576392b0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3e1f8191-08d2-4a59-8d27-0ac7576392b0%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 3, 2015, 9:10pm UTC](https://discuss.elastic.co/t/very-large-filter-cache/22492/2 "2015-03-03T21:10:15Z")

</div>

You cannot see what is in the cache unless you extract a heap dump.

On 4 March 2015 at 02:56, Roy Reznik [roy@adallom.com](mailto:roy@adallom.com) wrote:

> Hi,
> 
> We have a very high number of filter evictions per query (~10).  
> I tried to enlarge the cache size to 30%, but still, I see this number at  
> ~9.  
> I'm trying to debug this (I think we might have huge queries, effecting  
> this) - so I wanted to dump the cache, or something similar to try to  
> understand what is wasting all that space.  
> Is there any way I can do this? Or any other recommended way to debug?
> 
> Thanks.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/3e1f8191-08d2-4a59-8d27-0ac7576392b0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3e1f8191-08d2-4a59-8d27-0ac7576392b0%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/3e1f8191-08d2-4a59-8d27-0ac7576392b0%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/3e1f8191-08d2-4a59-8d27-0ac7576392b0%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X87dMJMJy14a9R\_9EOP3bi6pPaJecF\_JDmR5oeBO-ga3g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X87dMJMJy14a9R_9EOP3bi6pPaJecF_JDmR5oeBO-ga3g%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Roy\_Reznik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roy_reznik/32/773_2.png) [@Roy\_Reznik](https://discuss.elastic.co/u/Roy_Reznik)\
**Post date:** [April 13, 2015, 7:22am UTC](https://discuss.elastic.co/t/very-large-filter-cache/22492/3 "2015-04-13T07:22:13Z")

</div>

Mark, thanks so much.  
I tried to take a heap dump, but using jmap always takes the server out of  
the cluster..  
These are production servers, any way to do it live, without impacting the  
cluster?

Thanks.

On Tuesday, March 3, 2015 at 11:11:02 PM UTC+2, Mark Walkom wrote:

> You cannot see what is in the cache unless you extract a heap dump.
> 
> On 4 March 2015 at 02:56, Roy Reznik \<[r...@adallom.com](mailto:r...@adallom.com) \<javascript:\>\>  
> wrote:
> 
> > Hi,
> > 
> > We have a very high number of filter evictions per query (~10).  
> > I tried to enlarge the cache size to 30%, but still, I see this number at  
> > ~9.  
> > I'm trying to debug this (I think we might have huge queries, effecting  
> > this) - so I wanted to dump the cache, or something similar to try to  
> > understand what is wasting all that space.  
> > Is there any way I can do this? Or any other recommended way to debug?
> > 
> > Thanks.
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/3e1f8191-08d2-4a59-8d27-0ac7576392b0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3e1f8191-08d2-4a59-8d27-0ac7576392b0%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/3e1f8191-08d2-4a59-8d27-0ac7576392b0%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/3e1f8191-08d2-4a59-8d27-0ac7576392b0%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/89585bb7-8fba-44f9-8879-3c342c6a838b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/89585bb7-8fba-44f9-8879-3c342c6a838b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:20am UTC](https://discuss.elastic.co/t/very-large-filter-cache/22492/4 "2017-07-06T00:20:08Z")

</div>


