# Larger than the limit

**URL:** <https://discuss.elastic.co/t/larger-than-the-limit/151799>\
**Category:** Elasticsearch\
**Created:** [October 10, 2018, 9:18am UTC](https://discuss.elastic.co/t/larger-than-the-limit/151799 "2018-10-10T09:18:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HARSHAL\_CHAUDHARI](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshal_chaudhari/32/36058_2.png) [@HARSHAL\_CHAUDHARI](https://discuss.elastic.co/u/HARSHAL_CHAUDHARI)\
**Post date:** [October 10, 2018, 9:18am UTC](https://discuss.elastic.co/t/larger-than-the-limit/151799/1 "2018-10-10T09:18:21Z")

</div>

I am trying to aad 142 MB pdf file in Elasticsearch attachment using ingest.

Error details as below

# FailureReason: BadResponse while attempting PUT on [http://127.0.0.1:6379/index-stress-test-10oct2018-r1/document/b6091cc6-c2b7-40c3-9f26-7187223d3cfb?pipeline=attachments](http://127.0.0.1:6379/index-stress-test-10oct2018-r1/document/b6091cc6-c2b7-40c3-9f26-7187223d3cfb?pipeline=attachments)

# Audit trail of this API call:

- [1] BadResponse: Node: [http://127.0.0.1:6379/](http://127.0.0.1:6379/) Took: 00:00:01.4445106

# OriginalException: Elasticsearch.Net.ElasticsearchClientException: Request failed to execute. Call: Status code 503 from: PUT /index-stress-test-10oct2018-r1/document/b6091cc6-c2b7-40c3-9f26-7187223d3cfb?pipeline=attachments. ServerError: Type: circuit\_breaking\_exception Reason: "[parent] Data too large, data for [\<http\_request\>] would be [363305103/346.4mb], which is larger than the limit of [363285708/346.4mb]"

# Request:

\<Request stream not captured or already read to completion by serializer. Set DisableDirectStreaming() on ConnectionSettings to force it to be set on the response.\>

# Response:

\<Response stream not captured or already read to completion by serializer. Set DisableDirectStreaming() on ConnectionSettings to force it to be set on the response.\>

# Exception:

Elasticsearch.Net.ElasticsearchClientException: Request failed to execute. Call: Status code 503 from: PUT /index-stress-test-10oct2018-r1/document/b6091cc6-c2b7-40c3-9f26-7187223d3cfb?pipeline=attachments. ServerError: Type: circuit\_breaking\_exception Reason: "[parent] Data too large, data for [\<http\_request\>] would be [363305103/346.4mb], which is larger than the limit of [363285708/346.4mb]"

Could you please let me know fix for same.

---

<div class="post-metadata">

**Author:** ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)\
**Post date:** [October 11, 2018, 8:38am UTC](https://discuss.elastic.co/t/larger-than-the-limit/151799/2 "2018-10-11T08:38:36Z")

</div>

Hi Harshal,

The parent circuit breaker is calculated by adding the estimated usage of each of the child circuit breakers, so the first thing I would do is to check the `/_nodes/stats/breaker` output to see what each of the child breakers' estimated field is. Then you can see what is using most of the circuit breaker memory.

The second thing is that the parent circuit breaker defaults to 70% of the HEAP, and with a 346mb limit that means you're using a ~500mb heap (assuming you haven't changed the limit), I don't recommend trying to index a 142mb pdf file into Elasticsearch with such a small heap, keep in mind that at least 142mb will have to be used _Just_ for networking buffers, no including the memory used for analysis, lucene, etc

---

<div class="post-metadata">

**Author:** ![HARSHAL\_CHAUDHARI](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshal_chaudhari/32/36058_2.png) [@HARSHAL\_CHAUDHARI](https://discuss.elastic.co/u/HARSHAL_CHAUDHARI)\
**Post date:** [October 23, 2018, 10:11am UTC](https://discuss.elastic.co/t/larger-than-the-limit/151799/3 "2018-10-23T10:11:59Z")

</div>

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:** [November 20, 2018, 10:12am UTC](https://discuss.elastic.co/t/larger-than-the-limit/151799/4 "2018-11-20T10:12:01Z")

</div>

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