# Can't set indices.fielddata.cache.size

**URL:** <https://discuss.elastic.co/t/cant-set-indices-fielddata-cache-size/15208>\
**Category:** Elasticsearch\
**Created:** [January 11, 2014, 12:15pm UTC](https://discuss.elastic.co/t/cant-set-indices-fielddata-cache-size/15208 "2014-01-11T12:15:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luigi\_Tomaselli](https://avatars.discourse-cdn.com/v4/letter/l/d07c76/32.png) [@Luigi\_Tomaselli](https://discuss.elastic.co/u/Luigi_Tomaselli)\
**Post date:** [January 11, 2014, 12:15pm UTC](https://discuss.elastic.co/t/cant-set-indices-fielddata-cache-size/15208/1 "2014-01-11T12:15:35Z")

</div>

Hi,  
i'm trying to set FieldData cache size in  
/etc/elasticsearch/elasticsearch.yml with no success; this is a log extract:

[2014-01-11 13:04:39,890][DEBUG][indices.cache.filter] [Egghead] using  
[node] weighted filter cache with size [20%], actual\_size [1010.6mb],  
expire [null], clean\_interval [1m]  
_[2014-01-11 13:04:39,891][DEBUG][indices.fielddata.cache] [Egghead]  
using size [-1] [-1b], expire [null]_  
[2014-01-11 13:04:39,909][DEBUG][gateway.local.state.meta] [Egghead] using  
gateway.local.auto\_import\_dangled [YES], with  
gateway.local.dangling\_timeout [2h]

so in IndicesFieldDataCache.java it can't get configured value.

Some info:

java -version  
java version "1.7.0\_45"  
Java(TM) SE Runtime Environment (build 1.7.0\_45-b18)  
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

in elasticsearch.yml:  
indices.fielddata.cache.size: 5%  
indices.fielddata.cache.expire : 5m

Debian version 7.2, Elasticsearch 0.90.9

I have tried to set % or gb value, to prefix that two lines with "index."  
ecc...

What's wrong?

Thank you,  
Luigi

--  
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/dc0d6145-8b95-4d98-bff8-c2f9a4c18141%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/dc0d6145-8b95-4d98-bff8-c2f9a4c18141%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Luigi\_Tomaselli](https://avatars.discourse-cdn.com/v4/letter/l/d07c76/32.png) [@Luigi\_Tomaselli](https://discuss.elastic.co/u/Luigi_Tomaselli)\
**Post date:** [January 11, 2014, 3:07pm UTC](https://discuss.elastic.co/t/cant-set-indices-fielddata-cache-size/15208/2 "2014-01-11T15:07:55Z")

</div>

Fixed!, just found a preceding config line which start witth a white space  
and so all consecutive lines get ignored.

Luigi

Il giorno sabato 11 gennaio 2014 13:15:35 UTC+1, Luigi Tomaselli ha scritto:

> Hi,  
> i'm trying to set FieldData cache size in  
> /etc/elasticsearch/elasticsearch.yml with no success; this is a log extract:
> 
> [2014-01-11 13:04:39,890][DEBUG][indices.cache.filter] [Egghead]  
> using [node] weighted filter cache with size [20%], actual\_size [1010.6mb],  
> expire [null], clean\_interval [1m]  
> _[2014-01-11 13:04:39,891][DEBUG][indices.fielddata.cache] [Egghead]  
> using size [-1] [-1b], expire [null]_  
> [2014-01-11 13:04:39,909][DEBUG][gateway.local.state.meta] [Egghead]  
> using gateway.local.auto\_import\_dangled [YES], with  
> gateway.local.dangling\_timeout [2h]
> 
> so in IndicesFieldDataCache.java it can't get configured value.
> 
> Some info:
> 
> java -version  
> java version "1.7.0\_45"  
> Java(TM) SE Runtime Environment (build 1.7.0\_45-b18)  
> Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
> 
> in elasticsearch.yml:  
> indices.fielddata.cache.size: 5%  
> indices.fielddata.cache.expire : 5m
> 
> Debian version 7.2, Elasticsearch 0.90.9
> 
> I have tried to set % or gb value, to prefix that two lines with "index."  
> ecc...
> 
> What's wrong?
> 
> Thank you,  
> Luigi

--  
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/edded982-10a2-4d6b-b56f-a434389e6c54%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/edded982-10a2-4d6b-b56f-a434389e6c54%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 1:57am UTC](https://discuss.elastic.co/t/cant-set-indices-fielddata-cache-size/15208/3 "2017-07-06T01:57:17Z")

</div>


