# Related ES 5.3 buffer memory issue

**URL:** <https://discuss.elastic.co/t/related-es-5-3-buffer-memory-issue/243355>\
**Category:** Elasticsearch\
**Created:** [July 31, 2020, 12:52pm UTC](https://discuss.elastic.co/t/related-es-5-3-buffer-memory-issue/243355 "2020-07-31T12:52:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sourabh\_Korde](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@Sourabh\_Korde](https://discuss.elastic.co/u/Sourabh_Korde)\
**Post date:** [July 31, 2020, 12:52pm UTC](https://discuss.elastic.co/t/related-es-5-3-buffer-memory-issue/243355/1 "2020-07-31T12:52:09Z")

</div>

I am using ES 5.3 version with high level REST client. When am requesting lengthy description its showing exception like

[ERROR|2020-07-21 11:37:23.971|VACS|37891724|VACS-27229170-20200721:113703-963|hsbc-search-service]  
(com.fedex.tradetools.hsbc.hsbcsearch.data.v1.controller.HsbcSearchController)  
{org.apache.http.ContentTooLongException: entity content is too long [129995146]  
for the configured buffer limit [104857600]

can we try to configure yaml file and can increase buffer size upto 150mb which is by default 100mb ??  
OR  
We can configure it in REST method on code level ??

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [August 3, 2020, 7:14am UTC](https://discuss.elastic.co/t/related-es-5-3-buffer-memory-issue/243355/2 "2020-08-03T07:14:43Z")

</div>

The max content length is set in the cluster config through the [http.max\_content\_length](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/modules-http.html) parameter. Sending very large requests like that can however affect the cluster negatively. Why are your HTTP requests so large?

---

<div class="post-metadata">

**Author:** ![Sourabh\_Korde](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@Sourabh\_Korde](https://discuss.elastic.co/u/Sourabh_Korde)\
**Post date:** [August 6, 2020, 7:39am UTC](https://discuss.elastic.co/t/related-es-5-3-buffer-memory-issue/243355/3 "2020-08-06T07:39:58Z")

</div>

Request generated response containing large amount of data causes this issue. So couldn't understand how to solve this issue on ES side.

---

<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:** [September 3, 2020, 7:39am UTC](https://discuss.elastic.co/t/related-es-5-3-buffer-memory-issue/243355/4 "2020-09-03T07:39:58Z")

</div>

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