# How to control the memory for es

**URL:** <https://discuss.elastic.co/t/how-to-control-the-memory-for-es/198621>\
**Category:** Elasticsearch\
**Created:** [September 9, 2019, 7:40am UTC](https://discuss.elastic.co/t/how-to-control-the-memory-for-es/198621 "2019-09-09T07:40:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lurongjiang](https://avatars.discourse-cdn.com/v4/letter/l/53a042/32.png) [@lurongjiang](https://discuss.elastic.co/u/lurongjiang)\
**Post date:** [September 9, 2019, 7:40am UTC](https://discuss.elastic.co/t/how-to-control-the-memory-for-es/198621/1 "2019-09-09T07:40:46Z")

</div>

I set the es jvm option with -Xmx8g -Xms8g,but it didn't seem to work,the memory of es is not expected.While running with spark job,the CPU raise to 700%.How can I controller the es?

 ![1](https://us1.discourse-cdn.com/elastic/original/3X/e/8/e80603335e54dd13f67af5dd2fc56e218e9f56c9.png)

---

<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:** [October 7, 2019, 7:40am UTC](https://discuss.elastic.co/t/how-to-control-the-memory-for-es/198621/2 "2019-10-07T07:40:48Z")

</div>

Closed on October 7, 2019, 7:40am UTC

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