# JVM High Memory Usage - Min and Max Heap doesn't work

**URL:** <https://discuss.elastic.co/t/jvm-high-memory-usage-min-and-max-heap-doesnt-work/190691>\
**Category:** Elasticsearch\
**Created:** [July 16, 2019, 9:05am UTC](https://discuss.elastic.co/t/jvm-high-memory-usage-min-and-max-heap-doesnt-work/190691 "2019-07-16T09:05:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JimL](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@JimL](https://discuss.elastic.co/u/JimL)\
**Post date:** [July 16, 2019, 9:05am UTC](https://discuss.elastic.co/t/jvm-high-memory-usage-min-and-max-heap-doesnt-work/190691/1 "2019-07-16T09:05:08Z")

</div>

ES version: 7.1.1

I'd encountered a high memory consumption by JVM (roughly 2.5 GB) from Elastic Search and currently looking for a way to better control the memory consumption. (In case it goes up to very high)

[Method to Adjust Min and Max Heap](https://www.elastic.co/guide/en/elasticsearch/reference/current/heap-size.html)

I tried to follow the instruction of the above link to adjust the Min and Max Heap (to 1GB, for testing purposes) but didn't see any effect after I restart the machine.

Here is the screenshot I took.

 ![Java_related](https://us1.discourse-cdn.com/elastic/original/3X/2/7/27edff3ec1cc755fd912a08b192fc7cae3279b74.jpeg)

Anyone knows why the setting didn't take effect? Did I miss any steps?

---

<div class="post-metadata">

**Author:** ![jonathan\_rowe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonathan_rowe/32/49275_2.png) [@jonathan\_rowe](https://discuss.elastic.co/u/jonathan_rowe)\
**Post date:** [July 16, 2019, 9:18am UTC](https://discuss.elastic.co/t/jvm-high-memory-usage-min-and-max-heap-doesnt-work/190691/2 "2019-07-16T09:18:15Z")

</div>

> **[Why is there a discrepancy between Windows Task manager Memory and Java Heap ?...](http://karunsubramanian.com/uncategorized/why-is-there-a-discrepancy-between-windows-task-manager-memory-and-java-heap/)**
>
>   Tweet So we all know that Java Heap is a crucial resource, lack of which will kill your application. Naturally you will want to monitor the heap usage. Bur surprisingly it is not very straight forward to measure the heap usage of...

---

<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:** [August 13, 2019, 9:18am UTC](https://discuss.elastic.co/t/jvm-high-memory-usage-min-and-max-heap-doesnt-work/190691/3 "2019-08-13T09:18:26Z")

</div>

Closed on August 13, 2019, 9:18am UTC

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