# Heap settings

**URL:** https://discuss.elastic.co/t/heap-settings/203113
**Category:** Elasticsearch
**Created:** [October 10, 2019, 9:05pm UTC](https://discuss.elastic.co/t/heap-settings/203113 "2019-10-10T21:05:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![SirJune](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sirjune/32/55205_2.png) [@SirJune](https://discuss.elastic.co/u/SirJune)
#### Post date: [October 10, 2019, 9:05pm UTC](https://discuss.elastic.co/t/heap-settings/203113/1 "2019-10-10T21:05:04Z")

</div>

My servers have 188GB RAM. I initially set heap to 16GB

-Xms16g  
-Xmx16g

Logs is showing:  
[host04] heap size [15.8gb], compressed ordinary object pointers [true]

and

Heap address: 0x0000000400000000, size: 16384 MB, Compressed Oops mode: Zero based, Oop shift amount: 3

Do i need to adjust heap to 30G?

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [October 11, 2019, 3:02am UTC](https://discuss.elastic.co/t/heap-settings/203113/2 "2019-10-11T03:02:19Z")

</div>

> [@SirJune](#):
>
> compressed ordinary object pointers [true]

[Here](https://www.elastic.co/guide/en/elasticsearch/reference/current/heap-size.html) are the instruction for heap settings.

You most likely can increase your heap somewhere near 30GB for the exact value follow the instructions in the doc referenced above.

---

<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 8, 2019, 3:02am UTC](https://discuss.elastic.co/t/heap-settings/203113/3 "2019-11-08T03:02:20Z")

</div>

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