# Can i set 70% of memory?

**URL:** <https://discuss.elastic.co/t/can-i-set-70-of-memory/151896>\
**Category:** Elasticsearch\
**Created:** [October 10, 2018, 4:28pm UTC](https://discuss.elastic.co/t/can-i-set-70-of-memory/151896 "2018-10-10T16:28:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![merceskoba](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@merceskoba](https://discuss.elastic.co/u/merceskoba)\
**Post date:** [October 10, 2018, 4:28pm UTC](https://discuss.elastic.co/t/can-i-set-70-of-memory/151896/1 "2018-10-10T16:28:04Z")

</div>

Hello Guys...  
I have upgraded my elasticsearch specification. Now, it has 8 Cores, 32 GB Memory, 1 TB Data.  
Is a must to set these settings `-Xms16g` and `-Xmx16g` ?  
Could i set those to be `-Xms22g` and `-Xmx22g`?  
Or should i create the second node with half specifications of them ?  
Thank you

---

<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:** [October 10, 2018, 4:29pm UTC](https://discuss.elastic.co/t/can-i-set-70-of-memory/151896/2 "2018-10-10T16:29:27Z")

</div>

Why would you need to do this? Isn't 16gb enough?

---

<div class="post-metadata">

**Author:** ![merceskoba](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@merceskoba](https://discuss.elastic.co/u/merceskoba)\
**Post date:** [October 10, 2018, 4:33pm UTC](https://discuss.elastic.co/t/can-i-set-70-of-memory/151896/3 "2018-10-10T16:33:44Z")

</div>

Thank you for replying 🙂

> Uncomitted messages deleted from journal  
> `Some messages were deleted from the Graylog journal before they could be written to Elasticsearch. Please verify that your Elasticsearch cluster is healthy and fast enough. `

I found it 9 hours ago in Graylog2. At least, it's pop up once a day. Before, it was pop up more than 5 times a day. That's why  
What's your opinion ?

---

<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:** [October 10, 2018, 4:45pm UTC](https://discuss.elastic.co/t/can-i-set-70-of-memory/151896/4 "2018-10-10T16:45:46Z")

</div>

I don't have opinion on Graylog2. I don't know it.  
But I'm not sure that setting the JVM to 70% will solve this in any way.

---

<div class="post-metadata">

**Author:** ![merceskoba](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@merceskoba](https://discuss.elastic.co/u/merceskoba)\
**Post date:** [October 10, 2018, 5:09pm UTC](https://discuss.elastic.co/t/can-i-set-70-of-memory/151896/5 "2018-10-10T17:09:47Z")

</div>

In your experiences, what do you think if JVM is set to 70% of memory ?  
Is it good ?

---

<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:** [October 10, 2018, 5:46pm UTC](https://discuss.elastic.co/t/can-i-set-70-of-memory/151896/6 "2018-10-10T17:46:45Z")

</div>

No as recommendation is at most 50%

---

<div class="post-metadata">

**Author:** ![merceskoba](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@merceskoba](https://discuss.elastic.co/u/merceskoba)\
**Post date:** [October 10, 2018, 6:55pm UTC](https://discuss.elastic.co/t/can-i-set-70-of-memory/151896/7 "2018-10-10T18:55:44Z")

</div>

Thank you for your time. I got it.

---

<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 7, 2018, 6:58pm UTC](https://discuss.elastic.co/t/can-i-set-70-of-memory/151896/8 "2018-11-07T18:58:39Z")

</div>

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