# Heap Memory Dump with Embedded Java

**URL:** <https://forum.inductiveautomation.com/t/heap-memory-dump-with-embedded-java/59384>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [May 10, 2022, 4:00am UTC](https://forum.inductiveautomation.com/t/heap-memory-dump-with-embedded-java/59384 "2022-05-10T04:00:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![david.gillbee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david.gillbee/32/27863_2.png) [@david.gillbee](https://forum.inductiveautomation.com/u/david.gillbee)\
**Post date:** [May 10, 2022, 4:00am UTC](https://forum.inductiveautomation.com/t/heap-memory-dump-with-embedded-java/59384/1 "2022-05-10T04:00:49Z")

</div>

I have a system that has been running for a few months now.  
We have noticed recently that the heap size is growing and is now exceeded the available space.

Total Memory 2GB  
Non-Heap 320MB  
Heap 1.9GB  
Version 8.1.12

There are no timed gateway scripts.  
As this is using the embedded JAVA packaged within the Ignition install. Is there a way I can obtain a dump of the heap to start to identify the root cause of this leak?

I can try increasing the heap size when I can next shutdown the system, However it looks to be growing over time so an increase in total memory only delays the issue. I would really like to know how to identify and resolve the root cause.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 10, 2022, 6:55am UTC](https://forum.inductiveautomation.com/t/heap-memory-dump-with-embedded-java/59384/2 "2022-05-10T06:55:56Z")

</div>

Install any JDK with the same version as the embedded java. That will give you the tools you need, like `jhat`.

You will almost certainly want to compare a nearly clean system (post restart) against the situation when nearly full.
