# How to analyze JVM heap memory ？

**URL:** <https://discuss.elastic.co/t/how-to-analyze-jvm-heap-memory/281631>\
**Category:** Elasticsearch\
**Created:** [August 17, 2021, 6:10am UTC](https://discuss.elastic.co/t/how-to-analyze-jvm-heap-memory/281631 "2021-08-17T06:10:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![casterQ](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/casterq/32/93257_2.png) [@casterQ](https://discuss.elastic.co/u/casterQ)\
**Post date:** [August 17, 2021, 6:10am UTC](https://discuss.elastic.co/t/how-to-analyze-jvm-heap-memory/281631/1 "2021-08-17T06:10:46Z")

</div>

I want to know where memory used in es, as shown in the following figure：21.3gb memory used now in this node.i know some of them, such as:

1. indices.queries.cache.size
2. indices.fielddata.cache.size
3. index.requests.cache.size
4. segment memory（FTS is here？）
5. indices.memory.index\_buffer\_size
6. Indexing\_pressure

we can get 1 2 3 4 from \_cat/nodes API，how can i get 5 and 6 monitor？  
and what else is there used memory ? search agg or some things ? how can monitor them?

![image](https://us1.discourse-cdn.com/elastic/original/3X/6/c/6ccc1179596b8b93ce61476079788897df4ce429.png)。

---

<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:** [August 17, 2021, 6:21am UTC](https://discuss.elastic.co/t/how-to-analyze-jvm-heap-memory/281631/2 "2021-08-17T06:21:34Z")

</div>

Can you elaborate more on what problem you are looking to solve here?

---

<div class="post-metadata">

**Author:** ![casterQ](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/casterq/32/93257_2.png) [@casterQ](https://discuss.elastic.co/u/casterQ)\
**Post date:** [August 17, 2021, 6:28am UTC](https://discuss.elastic.co/t/how-to-analyze-jvm-heap-memory/281631/3 "2021-08-17T06:28:12Z")

</div>

I just want to know where the memory is used and monitor it。

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [August 17, 2021, 7:22am UTC](https://discuss.elastic.co/t/how-to-analyze-jvm-heap-memory/281631/4 "2021-08-17T07:22:40Z")

</div>

Which version are you using? Which GC are you using?

If you are using CMS GC it will only kick in once the heap is 75% full so not all 21.3GB might actually be used at the moment.

---

<div class="post-metadata">

**Author:** ![casterQ](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/casterq/32/93257_2.png) [@casterQ](https://discuss.elastic.co/u/casterQ)\
**Post date:** [August 17, 2021, 7:24am UTC](https://discuss.elastic.co/t/how-to-analyze-jvm-heap-memory/281631/5 "2021-08-17T07:24:29Z")

</div>

7.10.2 G1

---

<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:** [September 14, 2021, 7:25am UTC](https://discuss.elastic.co/t/how-to-analyze-jvm-heap-memory/281631/6 "2021-09-14T07:25:14Z")

</div>

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