# ElasticSearch 6.7: Big difference between parent circuit breaker and jvm used heap

**URL:** https://discuss.elastic.co/t/elasticsearch-6-7-big-difference-between-parent-circuit-breaker-and-jvm-used-heap/215967
**Category:** Elasticsearch
**Created:** [January 22, 2020, 12:34am UTC](https://discuss.elastic.co/t/elasticsearch-6-7-big-difference-between-parent-circuit-breaker-and-jvm-used-heap/215967 "2020-01-22T00:34:46Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![musfiqur](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@musfiqur](https://discuss.elastic.co/u/musfiqur)
#### Post date: [January 22, 2020, 12:34am UTC](https://discuss.elastic.co/t/elasticsearch-6-7-big-difference-between-parent-circuit-breaker-and-jvm-used-heap/215967/1 "2020-01-22T00:34:46Z")

</div>

Hi,  
We are using ES 6.7. We are looking at 2 metrics:

- Parent Circuit Breaker Used memory
- JVM used heap

We see that ES circuit breaker are way off. We see that for the same timestamp:  
Used heap returns 17.85 GB whereas parent circuit breaker for the same node shows only 178 MB. Is not the parent circuit breaker breaker be roughly equal to JVM used heap? Why are they way off? In that case, isn't the circuit breaker will always fail to trigger?  
-Musfiqur

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [January 22, 2020, 4:19pm UTC](https://discuss.elastic.co/t/elasticsearch-6-7-big-difference-between-parent-circuit-breaker-and-jvm-used-heap/215967/2 "2020-01-22T16:19:22Z")

</div>

Elasticsearch 6.x only tracks a limited subset of the heap usage for circuit breaking purposes; although it was good at preventing some overloads, it was not perfect. Elasticsearch 7.x [tracks the actual heap usage too](https://github.com/elastic/elasticsearch/pull/31767).

---

<div class="post-metadata">

### Author: ![musfiqur](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@musfiqur](https://discuss.elastic.co/u/musfiqur)
#### Post date: [January 22, 2020, 4:43pm UTC](https://discuss.elastic.co/t/elasticsearch-6-7-big-difference-between-parent-circuit-breaker-and-jvm-used-heap/215967/3 "2020-01-22T16:43:33Z")

</div>

In 7.x, will they mean the same value?

- Parent Circuit Breaker Used memory
- JVM used heap

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [January 22, 2020, 6:05pm UTC](https://discuss.elastic.co/t/elasticsearch-6-7-big-difference-between-parent-circuit-breaker-and-jvm-used-heap/215967/4 "2020-01-22T18:05:35Z")

</div>

Technically no, since I think the other circuit breakers might track memory that's potentially needed in future but not currently allocated. In practice they're normally quite close.

---

<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: [February 19, 2020, 6:05pm UTC](https://discuss.elastic.co/t/elasticsearch-6-7-big-difference-between-parent-circuit-breaker-and-jvm-used-heap/215967/5 "2020-02-19T18:05:36Z")

</div>

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