# Fielddata cache disabling when doc\_values on

**URL:** https://discuss.elastic.co/t/fielddata-cache-disabling-when-doc-values-on/29885
**Category:** Elasticsearch
**Created:** [September 24, 2015, 2:45am UTC](https://discuss.elastic.co/t/fielddata-cache-disabling-when-doc-values-on/29885 "2015-09-24T02:45:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![no\_jihun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/no_jihun/32/64028_2.png) [@no\_jihun](https://discuss.elastic.co/u/no_jihun)
#### Post date: [September 24, 2015, 2:45am UTC](https://discuss.elastic.co/t/fielddata-cache-disabling-when-doc-values-on/29885/1 "2015-09-24T02:45:36Z")

</div>

hi all.

My ES cluster(5 nodes working) is now under memory pressure, full gc stop-the-world. so I have to do some tuning.  
every document in ES are not analyzed and doc\_values are enabled.

all of the search request called through kibana 4.  
I know time ranged queries could be cached but usually can't be hit, because now timestamp moves.

 ![](https://us1.discourse-cdn.com/elastic/original/2X/9/93c7eafc2854a560cf02d2780d8dd07954347d1e.PNG)  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/c/c6d619de5d999754873b83403671e8e2309c5bb7.PNG)  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/a/ad63c08c2f210d9bac2fc1ce375e74d1fb589d9e.PNG)

[2015-09-22 17:12:34,647][WARN][monitor.jvm]  
[node001] [gc][old][7495149][1292] duration [28.2s], collections [1]/[28.4s], total [28.2s]/[1.7h], memory [23.3gb]-\>[15.1gb]/[23.8gb], all\_pools {[young] [1013.7mb]-\>[54.5mb]/[1.1gb]}{[survivor] [149.7mb]-\>[0b]/[149.7mb]}{[old] [22.1gb]-\>[15.1gb]/[22.5gb]}

[2015-09-22 17:17:02,305][WARN][monitor.jvm]  
[node001] [gc][old][7495388][1296] duration [28.3s], collections [1]/[28.6s], total [28.3s]/[1.7h], memory [23gb]-\>[15.1gb]/[23.8gb], all\_pools {[young] [912.2mb]-\>[76.5mb]/[1.1gb]}{[survivor] [149.7mb]-\>[0b]/[149.7mb]}{[old] [22gb]-\>[15gb]/[22.5gb]}

in that case can I turn the cache off?  
some modification like this..

indices.fielddata.cache.size: 30%  
indices.cache.filter.size: 10%  
indices.cache.query.size: 10%  
--\>  
indices.fielddata.cache.size: 1%  
indices.cache.filter.size: 1%  
indices.cache.query.size: 1%

ES reference doc says doc\_values give a big advantage with memory pressure.  
So I wonder why there are so much fielddata cache and fielddata eviction even I enabled doc\_values to all data.

summary.

1. fielddata cache needed even all doc\_values enabled?
2. kibana may cant hit the filter cache, query cache. turn cache 0% will help?
3. any cache configure suggestion for large ES+ many kibana query.

Thanks.

---

<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 5, 2017, 11:48pm UTC](https://discuss.elastic.co/t/fielddata-cache-disabling-when-doc-values-on/29885/2 "2017-07-05T23:48:21Z")

</div>


