# ERROR Heap Memory

**URL:** https://discuss.elastic.co/t/error-heap-memory/235680
**Category:** Kibana
**Created:** [June 4, 2020, 6:56am UTC](https://discuss.elastic.co/t/error-heap-memory/235680 "2020-06-04T06:56:34Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![vdelburgo](https://avatars.discourse-cdn.com/v4/letter/v/9fc348/32.png) [@vdelburgo](https://discuss.elastic.co/u/vdelburgo)
#### Post date: [June 4, 2020, 6:56am UTC](https://discuss.elastic.co/t/error-heap-memory/235680/1 "2020-06-04T06:56:34Z")

</div>

Hello,

I have the following error:

```auto
[circuit_breaking_exception] [parent] Data too large, data for [<http_request>] would be [995677744/949.5mb], which is larger than the limit of [986061209/940.3mb], real usage: [995677744/949.5mb], new bytes reserved: [0/0b], usages [request=0/0b, fielddata=968/968b, in_flight_requests=0/0b, accounting=182367304/173.9mb], with { bytes_wanted=995677744 & bytes_limit=986061209 & durability="PERMANENT" }

```

How can increase the heap memory in my system?

Thanks and regards

Víctor

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [June 5, 2020, 1:05am UTC](https://discuss.elastic.co/t/error-heap-memory/235680/2 "2020-06-05T01:05:58Z")

</div>

How much heap have you assigned to Elasticsearch, how much does the host have?

---

<div class="post-metadata">

### Author: ![vdelburgo](https://avatars.discourse-cdn.com/v4/letter/v/9fc348/32.png) [@vdelburgo](https://discuss.elastic.co/u/vdelburgo)
#### Post date: [June 5, 2020, 6:38am UTC](https://discuss.elastic.co/t/error-heap-memory/235680/3 "2020-06-05T06:38:33Z")

</div>

Hi,

The server has 32Gb, and I have only 1Gb assigned, by default.

I changed the parameters Xms4g and Xmx4g in the file /etc/elasticsearch/jvm.options but when I restart I get an error 500, and the only option that I don't get the error 500 is changing the previous parameters to 1Gb

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [June 5, 2020, 6:38am UTC](https://discuss.elastic.co/t/error-heap-memory/235680/4 "2020-06-05T06:38:58Z")

</div>

> [@vdelburgo](#):
>
> get an error 500

What do you mean? Can you post the config file and the logs?

---

<div class="post-metadata">

### Author: ![vdelburgo](https://avatars.discourse-cdn.com/v4/letter/v/9fc348/32.png) [@vdelburgo](https://discuss.elastic.co/u/vdelburgo)
#### Post date: [June 5, 2020, 10:14am UTC](https://discuss.elastic.co/t/error-heap-memory/235680/5 "2020-06-05T10:14:13Z")

</div>

Fixed: I have changed the parameters Xms4g and Xmx4g in the file /etc/elasticsearch/jvm.options , in addition to the file /etc/logstash/jvm.options and when restarting it works.

Thank you

---

<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: [July 3, 2020, 10:14am UTC](https://discuss.elastic.co/t/error-heap-memory/235680/6 "2020-07-03T10:14:18Z")

</div>

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