# Filter cache and field data caches

**URL:** <https://discuss.elastic.co/t/filter-cache-and-field-data-caches/22857>\
**Category:** Elasticsearch\
**Created:** [March 24, 2015, 2:17pm UTC](https://discuss.elastic.co/t/filter-cache-and-field-data-caches/22857 "2015-03-24T14:17:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vladi\_Feigin](https://avatars.discourse-cdn.com/v4/letter/v/258eb7/32.png) [@Vladi\_Feigin](https://discuss.elastic.co/u/Vladi_Feigin)\
**Post date:** [March 24, 2015, 2:17pm UTC](https://discuss.elastic.co/t/filter-cache-and-field-data-caches/22857/1 "2015-03-24T14:17:12Z")

</div>

Hi All,

We observe the relatively high heap usage : 70-75% per node. Our heap size  
is 32G. Each node has 2 shards (one primary , one replica). Each shard size  
is approximately 43G  
The size of the field data cache is ~22G and there are zero evictions from  
this cache  
The size of the filter cache is ~28G and there are many evictions  
Is it normal having such large cache sizes? We think it affects our queries  
performance. On an empty cache a query latency is 2-3 minutes for the first  
run. Second run takes 10 seconds (and after some time again 2 min)  
Does it those 2-3 min take to Elastic to rebuild/refresh the caches? Why  
it's so long?  
Please help us to understand how Elastic creates filter cache and field  
data cache. When does Elastic create these caches and how does it affect  
the queries performance?

Thank you in advance,  
Vladi

--  
This message may contain confidential and/or privileged information.  
If you are not the addressee or authorized to receive this on behalf of the  
addressee you must not use, copy, disclose or take action based on this  
message or any information herein.  
If you have received this message in error, please advise the sender  
immediately by reply email and delete this message. Thank you.

--  
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/7d51b34e-5252-44d8-ac56-df4c37b6a2b6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7d51b34e-5252-44d8-ac56-df4c37b6a2b6%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:24am UTC](https://discuss.elastic.co/t/filter-cache-and-field-data-caches/22857/2 "2017-07-06T00:24:29Z")

</div>


