# Indices.breaker.fielddata.limit

**URL:** https://discuss.elastic.co/t/indices-breaker-fielddata-limit/189961
**Category:** Elasticsearch
**Created:** [July 11, 2019, 9:51am UTC](https://discuss.elastic.co/t/indices-breaker-fielddata-limit/189961 "2019-07-11T09:51:28Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jeroen1](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@jeroen1](https://discuss.elastic.co/u/jeroen1)
#### Post date: [July 11, 2019, 9:51am UTC](https://discuss.elastic.co/t/indices-breaker-fielddata-limit/189961/1 "2019-07-11T09:51:28Z")

</div>

I am running ES 6 in production and was testing our application in development for use with the latest ES 7. Things break. The issue is related to the default value of indices.breaker.fielddata.limit. In 6, the default is 60% [https://www.elastic.co/guide/en/elasticsearch/reference/6.6/circuit-breaker.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.6/circuit-breaker.html), in 7 it is 40% [https://www.elastic.co/guide/en/elasticsearch/reference/7.2/circuit-breaker.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.2/circuit-breaker.html). What's the reason behind this significant change?

Also I noted that for our application, indices.breaker.fielddata.limit needs to be increased even further on ES 7, using the same jvm.options. So it seems that ES 7 is using more memory. What is the cause of this (new bundled JVM, Lucene 8, ...)?

Thanks!

---

<div class="post-metadata">

### Author: ![HenningAndersen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/henningandersen/32/48188_2.png) [@HenningAndersen](https://discuss.elastic.co/u/HenningAndersen)
#### Post date: [July 11, 2019, 3:07pm UTC](https://discuss.elastic.co/t/indices-breaker-fielddata-limit/189961/2 "2019-07-11T15:07:22Z")

</div>

@jeroen1 the primary reason the default has been lowered is that most use cases should now use doc values instead.

This was noted here:  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking-changes-7.0.html#\_field\_data\_circuit\_breaker\_changes](https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking-changes-7.0.html#_field_data_circuit_breaker_changes)

and this issue contains the background.

> <https://github.com/elastic/elasticsearch/issues/27130>

If possible, converting to using doc values instead of field data is preferable.

---

<div class="post-metadata">

### Author: ![jeroen1](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@jeroen1](https://discuss.elastic.co/u/jeroen1)
#### Post date: [July 11, 2019, 3:28pm UTC](https://discuss.elastic.co/t/indices-breaker-fielddata-limit/189961/3 "2019-07-11T15:28:01Z")

</div>

Thanks! Although I still don't fully understand: doc\_values was already enabled in ES 5 by default 🙂

My other (unanswered) question: why do I need a higher value for indices.breaker.fielddata.limit in ES 7, compared to same setup in ES 6 (same dataset, same system, same JVM settings)? Are there more changes under the hood? Or is this related to the bundled JVM (I was using OpenJDK8 before) or Lucene 7 --\> 8?

---

<div class="post-metadata">

### Author: ![HenningAndersen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/henningandersen/32/48188_2.png) [@HenningAndersen](https://discuss.elastic.co/u/HenningAndersen)
#### Post date: [July 12, 2019, 12:41pm UTC](https://discuss.elastic.co/t/indices-breaker-fielddata-limit/189961/4 "2019-07-12T12:41:10Z")

</div>

@jeroen1, yes, this could have been narrowed that in 5, but finally got included into 7.

I have not found a cause for needing a higher limit. One option could be that your shards have moved around during upgrade and thus might be less perfectly balanced towards fielddata?

I would doubt that the JVM change has anything to do with it unless you are using very close to 32GB heap and it crossed the line to not use compressed oops.

---

<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: [August 9, 2019, 12:41pm UTC](https://discuss.elastic.co/t/indices-breaker-fielddata-limit/189961/5 "2019-08-09T12:41:16Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
