# +HeapDumpOnOutOfMemoryError

**URL:** <https://discuss.elastic.co/t/heapdumponoutofmemoryerror/298786>\
**Category:** Logstash\
**Created:** [March 3, 2022, 7:55pm UTC](https://discuss.elastic.co/t/heapdumponoutofmemoryerror/298786 "2022-03-03T19:55:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [March 3, 2022, 11:27pm UTC](https://discuss.elastic.co/t/heapdumponoutofmemoryerror/298786/2 "2022-03-03T23:27:54Z")

</div>

To find the problem you should take a look at the heap dump in a tool like [MAT](https://www.eclipse.org/mat/). If you find yourself spending more than a minute trying to work out what is using all the memory then give up. It should be front and centre on the main page. -- leak candidate #1.

See [this](https://discuss.elastic.co/t/logstash-7-5-gc-too-frequently-to-work/290331/2) thread for an example of what you should see.

---

_[View the full topic](https://discuss.elastic.co/t/heapdumponoutofmemoryerror/298786)._
