# How to know which task/process is using the JVM Heap and non heap

**URL:** <https://discuss.elastic.co/t/how-to-know-which-task-process-is-using-the-jvm-heap-and-non-heap/75815>\
**Category:** Elasticsearch\
**Created:** [February 21, 2017, 4:18am UTC](https://discuss.elastic.co/t/how-to-know-which-task-process-is-using-the-jvm-heap-and-non-heap/75815 "2017-02-21T04:18:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nethis](https://avatars.discourse-cdn.com/v4/letter/n/d2c977/32.png) [@nethis](https://discuss.elastic.co/u/nethis)\
**Post date:** [February 21, 2017, 4:18am UTC](https://discuss.elastic.co/t/how-to-know-which-task-process-is-using-the-jvm-heap-and-non-heap/75815/1 "2017-02-21T04:18:43Z")

</div>

Hi there,

I have stopped all the indexing(bulk indexing) process, and even though, I can see the jvm heap is around 85%+.

How can we know, which task/process is using JVM Heap and non heap memories. It will help me to identify the area, to focus on the task/process using more JVM Heap.

Also, suddenly, a 700MB file(around **2.5 lakh docs of 3 kb each** ) is taking around 2 hours of time, where earlier it is taking just around 5-10 mins. What could be the issue here? and what to check, why the bulk indexing time has increased drastically?

I could see the Bulk Index queue is 100+ all the times, not more than that. Even earlier, it is the same. So, is this some thing like logstash is not sending the requests? or ElasticSearch is not accepting the bulk indexing requests from logstash?

---

<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:** [February 21, 2017, 7:38am UTC](https://discuss.elastic.co/t/how-to-know-which-task-process-is-using-the-jvm-heap-and-non-heap/75815/2 "2017-02-21T07:38:36Z")

</div>

ES uses the heap, non heap is handled by the OS.

Do you have Monitoring installed?

---

<div class="post-metadata">

**Author:** ![nethis](https://avatars.discourse-cdn.com/v4/letter/n/d2c977/32.png) [@nethis](https://discuss.elastic.co/u/nethis)\
**Post date:** [February 22, 2017, 5:32am UTC](https://discuss.elastic.co/t/how-to-know-which-task-process-is-using-the-jvm-heap-and-non-heap/75815/3 "2017-02-22T05:32:28Z")

</div>

I have the KOPF and ElasticHQ installed. But not able to figure out why such drastic increase in the indexing time.

---

<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:** [March 22, 2017, 5:32am UTC](https://discuss.elastic.co/t/how-to-know-which-task-process-is-using-the-jvm-heap-and-non-heap/75815/4 "2017-03-22T05:32:42Z")

</div>

Closed on March 22, 2017, 5:32am UTC

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