# Force heap dump

**URL:** <https://discuss.elastic.co/t/force-heap-dump/229623>\
**Category:** Elasticsearch\
**Created:** [April 24, 2020, 10:34am UTC](https://discuss.elastic.co/t/force-heap-dump/229623 "2020-04-24T10:34:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![YvorL](https://avatars.discourse-cdn.com/v4/letter/y/9fc348/32.png) [@YvorL](https://discuss.elastic.co/u/YvorL)\
**Post date:** [April 24, 2020, 10:35am UTC](https://discuss.elastic.co/t/force-heap-dump/229623/1 "2020-04-24T10:35:00Z")

</div>

Hi,

Is there a way to force a heap dump with Elasticsearch? I have `OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-2ubuntu218.04)` running and unfortunately, `jmap` isn't part of that.

Thanks!

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [April 24, 2020, 11:29am UTC](https://discuss.elastic.co/t/force-heap-dump/229623/2 "2020-04-24T11:29:48Z")

</div>

You can't get a heap dump directly out of Elasticsearch, no, you need to use `jmap`. If that's not included in your JDK then use a different JDK. The one that comes bundled with Elasticsearch is recommended, and includes `jmap`.

---

<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:** [May 22, 2020, 11:30am UTC](https://discuss.elastic.co/t/force-heap-dump/229623/3 "2020-05-22T11:30:48Z")

</div>

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