# Controlling RAM consumption

**URL:** <https://discuss.elastic.co/t/controlling-ram-consumption/165180>\
**Category:** Elasticsearch\
**Created:** [January 22, 2019, 8:20am UTC](https://discuss.elastic.co/t/controlling-ram-consumption/165180 "2019-01-22T08:20:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![christoph.p](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@christoph.p](https://discuss.elastic.co/u/christoph.p)\
**Post date:** [January 22, 2019, 8:20am UTC](https://discuss.elastic.co/t/controlling-ram-consumption/165180/1 "2019-01-22T08:20:50Z")

</div>

Hi!  
Is there any possibility to set an upper bound for the RAM usage of Elasticsearch?

Thanks!

---

<div class="post-metadata">

**Author:** ![ariemenschneider](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ariemenschneider/32/33564_2.png) [@ariemenschneider](https://discuss.elastic.co/u/ariemenschneider)\
**Post date:** [January 22, 2019, 12:42pm UTC](https://discuss.elastic.co/t/controlling-ram-consumption/165180/2 "2019-01-22T12:42:56Z")

</div>

Hello,

the usual way is configuring the -Xmx Parameter for the Java-VM. By setting this parameter in (usually) the jvm.options file You limit the maximum amount of the JVM heap, in which Elasticsearch runs.

See [Elasticsearch Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/jvm-options.html).

Regards,

---

<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:** [February 19, 2019, 12:43pm UTC](https://discuss.elastic.co/t/controlling-ram-consumption/165180/3 "2019-02-19T12:43:03Z")

</div>

Closed on February 19, 2019, 12:43pm UTC

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