# ES 2 small JVMs vs 1 big JVM

**URL:** <https://discuss.elastic.co/t/es-2-small-jvms-vs-1-big-jvm/162195>\
**Category:** Elasticsearch\
**Created:** [December 27, 2018, 4:24am UTC](https://discuss.elastic.co/t/es-2-small-jvms-vs-1-big-jvm/162195 "2018-12-27T04:24:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dextermorgan](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@dextermorgan](https://discuss.elastic.co/u/dextermorgan)\
**Post date:** [December 27, 2018, 4:24am UTC](https://discuss.elastic.co/t/es-2-small-jvms-vs-1-big-jvm/162195/1 "2018-12-27T04:24:40Z")

</div>

Hi All,

I am a newbie to elastic search and working on profiling our elastic search cluster. We are using i3.4x, that means 122G of RAM and 16 vCPUs.

Currently, we are running 70G ES JVM (G1GC) and rest memory for Lucene FScache. Our application is aggregations intensive. We are noticing that our cluster is choking on compute.

I tried decreasing JVM heap to 31.9 G but it dies with OOM exception for certain queries. So my question is, should I run 2 ES JVMs on same machine with 31.9 G heap each or it won't make much difference as compared to 1 single 70G JVM?

PS - We have 20 such nodes in cluster.

Thanks

---

<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:** [December 28, 2018, 5:45am UTC](https://discuss.elastic.co/t/es-2-small-jvms-vs-1-big-jvm/162195/2 "2018-12-28T05:45:28Z")

</div>

> [@dextermorgan](#):
>
> So my question is, should I run 2 ES JVMs on same machine with 31.9 G heap each or it won't make much difference as compared to 1 single 70G JVM?

I would suggest that you are better off fixing this problem;

> [@dextermorgan](#):
>
> I tried decreasing JVM heap to 31.9 G but it dies with OOM exception for certain queries

You are ultimately better off having many nodes with smaller heaps.

---

<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 25, 2019, 5:45am UTC](https://discuss.elastic.co/t/es-2-small-jvms-vs-1-big-jvm/162195/3 "2019-01-25T05:45:32Z")

</div>

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