# Circuit breaking EXception while using Reindex API

**URL:** <https://discuss.elastic.co/t/circuit-breaking-exception-while-using-reindex-api/200922>\
**Category:** Elasticsearch\
**Created:** [September 24, 2019, 6:08pm UTC](https://discuss.elastic.co/t/circuit-breaking-exception-while-using-reindex-api/200922 "2019-09-24T18:08:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Siva\_Karan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/siva_karan/32/54688_2.png) [@Siva\_Karan](https://discuss.elastic.co/u/Siva_Karan)\
**Post date:** [September 24, 2019, 6:08pm UTC](https://discuss.elastic.co/t/circuit-breaking-exception-while-using-reindex-api/200922/1 "2019-09-24T18:08:26Z")

</div>

Hi,

while using **Reindex API** we are getting circuit breaking Exception

```
  "cause" : {
    "type" : "circuit_breaking_exception",
    "reason" : "[parent] Data too large, data for [<transport_request>] would be [3880571978/3.6gb], which is larger than the limit of [3759774105/3.5gb], real usage: [3877310992/3.6gb], new bytes reserved: [3260986/3.1mb], usages [request=0/0b, fielddata=0/0b, in_flight_requests=3260986/3.1mb, accounting=1243875/1.1mb]",
    "bytes_wanted" : 3880571978,
    "bytes_limit" : 3759774105,
    "durability" : "TRANSIENT"
  },
  "status" : 429
},
```

---

<div class="post-metadata">

**Author:** ![Armin\_Braun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/armin_braun/32/20092_2.png) [@Armin\_Braun](https://discuss.elastic.co/u/Armin_Braun)\
**Post date:** [September 24, 2019, 7:34pm UTC](https://discuss.elastic.co/t/circuit-breaking-exception-while-using-reindex-api/200922/2 "2019-09-24T19:34:48Z")

</div>

Hi @Siva_Karan,

could you share the jvm.options you're using? (the GC settings and heap sizing is what I'm looking for in particular).

---

<div class="post-metadata">

**Author:** ![Siva\_Karan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/siva_karan/32/54688_2.png) [@Siva\_Karan](https://discuss.elastic.co/u/Siva_Karan)\
**Post date:** [September 24, 2019, 8:04pm UTC](https://discuss.elastic.co/t/circuit-breaking-exception-while-using-reindex-api/200922/3 "2019-09-24T20:04:36Z")

</div>

Hi @Armin_Braun

please look this jvm options we are using

export ES\_JAVA\_OPTS="-XX:HeapDumpPath=\<\<\<\_LOG\_PATH/$NODE\_NAME-heapdump.hprof -Xloggc:\<\<\<\<\_LOG\_PATH/gc.log -XX:+UseConcMarkSweepGC -Xms8096m -Xmx8096m -XX:+UseParNewGC -XX:CMSInitiatingOccupancyFraction=70 -XX:+UseCMSInitiatingOccupancyOnly -XX:+PrintGCDetails -verbose:gc -XX:+PrintGCTimeStamps -XX:NewSize=1024m -XX:MaxNewSize=1024m -XX:MaxTenuringThreshold=6 -XX:+PrintTenuringDistribution -XX:SurvivorRatio=6 -XX:+CMSClassUnloadingEnabled"

---

<div class="post-metadata">

**Author:** ![Armin\_Braun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/armin_braun/32/20092_2.png) [@Armin\_Braun](https://discuss.elastic.co/u/Armin_Braun)\
**Post date:** [September 25, 2019, 5:49am UTC](https://discuss.elastic.co/t/circuit-breaking-exception-while-using-reindex-api/200922/4 "2019-09-25T05:49:58Z")

</div>

@Siva_Karan thanks for those numbers.

You seem to be using non-standard limits in the real-memory circuit breaker (i.e. less than 50% of total heap seem to be the limit for real memory circuit breaking)?  
What did you set the [limits](https://www.elastic.co/guide/en/elasticsearch/reference/current/circuit-breaker.html#parent-circuit-breaker) to? I think increasing these limits might help you make the circuit breaker less likely to trigger.

---

<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:** [October 23, 2019, 5:50am UTC](https://discuss.elastic.co/t/circuit-breaking-exception-while-using-reindex-api/200922/5 "2019-10-23T05:50:10Z")

</div>

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