# ES master node.How to set the size of heap space?

**URL:** https://discuss.elastic.co/t/es-master-node-how-to-set-the-size-of-heap-space/162732
**Category:** Elasticsearch
**Created:** [January 3, 2019, 1:55am UTC](https://discuss.elastic.co/t/es-master-node-how-to-set-the-size-of-heap-space/162732 "2019-01-03T01:55:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![xyx](https://avatars.discourse-cdn.com/v4/letter/x/eb8c5e/32.png) [@xyx](https://discuss.elastic.co/u/xyx)
#### Post date: [January 3, 2019, 1:55am UTC](https://discuss.elastic.co/t/es-master-node-how-to-set-the-size-of-heap-space/162732/1 "2019-01-03T01:55:15Z")

</div>

ES master node.How to set the size of heap space?  
Can I set it to 1G,I think it is enough.What do you think?

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [January 3, 2019, 3:04am UTC](https://discuss.elastic.co/t/es-master-node-how-to-set-the-size-of-heap-space/162732/2 "2019-01-03T03:04:36Z")

</div>

It's the default value so you should be ok by default.

But if you have a lot of nodes, lot of indices, big mappings, you might need to increase that.  
See the `jvm.options` file.

---

<div class="post-metadata">

### Author: ![xyx](https://avatars.discourse-cdn.com/v4/letter/x/eb8c5e/32.png) [@xyx](https://discuss.elastic.co/u/xyx)
#### Post date: [January 3, 2019, 4:22am UTC](https://discuss.elastic.co/t/es-master-node-how-to-set-the-size-of-heap-space/162732/3 "2019-01-03T04:22:09Z")

</div>

I have 8 nodes.Three master nodes and five data nodes.

---

<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: [January 31, 2019, 4:22am UTC](https://discuss.elastic.co/t/es-master-node-how-to-set-the-size-of-heap-space/162732/4 "2019-01-31T04:22:11Z")

</div>

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