# Heap Memory Download, Gateway down with out of memory error

**URL:** <https://forum.inductiveautomation.com/t/heap-memory-download-gateway-down-with-out-of-memory-error/68437>\
**Category:** Ignition\
**Created:** [January 10, 2023, 4:52pm UTC](https://forum.inductiveautomation.com/t/heap-memory-download-gateway-down-with-out-of-memory-error/68437 "2023-01-10T16:52:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bharadwaj\_G](https://avatars.discourse-cdn.com/v4/letter/b/ecb155/32.png) [@Bharadwaj\_G](https://forum.inductiveautomation.com/u/Bharadwaj_G)\
**Post date:** [January 10, 2023, 4:52pm UTC](https://forum.inductiveautomation.com/t/heap-memory-download-gateway-down-with-out-of-memory-error/68437/1 "2023-01-10T16:52:52Z")

</div>

Hi,

i am looking for ignition.conf file settings (configuration changes) to download Heap dump, when gateway down due to out of memory error.

please help me on this.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 10, 2023, 4:56pm UTC](https://forum.inductiveautomation.com/t/heap-memory-download-gateway-down-with-out-of-memory-error/68437/2 "2023-01-10T16:56:58Z")

</div>

You would just add `-XX:+HeapDumpOnOutOfMemoryError` to your `wrapper.java.additional` settings:  
[https://docs.inductiveautomation.com/display/DOC81/Gateway+Configuration+File+Reference#GatewayConfigurationFileReference-ChangingJavaAdditionalParameters](https://docs.inductiveautomation.com/display/DOC81/Gateway+Configuration+File+Reference#GatewayConfigurationFileReference-ChangingJavaAdditionalParameters)

---

<div class="post-metadata">

**Author:** ![Bharadwaj\_G](https://avatars.discourse-cdn.com/v4/letter/b/ecb155/32.png) [@Bharadwaj\_G](https://forum.inductiveautomation.com/u/Bharadwaj_G)\
**Post date:** [January 18, 2023, 12:44pm UTC](https://forum.inductiveautomation.com/t/heap-memory-download-gateway-down-with-out-of-memory-error/68437/3 "2023-01-18T12:44:36Z")

</div>

Thanks for the reply @paul-griffith ,

I have configured additional parameters in ignition.conf to download heap dump, when gateway reach out of memory.

can please check the configured parameters are sufficient to get the heap dump.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/6/966177b30c634e000550f7048716f12591bdae90.png)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 18, 2023, 4:17pm UTC](https://forum.inductiveautomation.com/t/heap-memory-download-gateway-down-with-out-of-memory-error/68437/4 "2023-01-18T16:17:35Z")

</div>

That path might be suspect, but that way you added the parameters appears correct.

---

<div class="post-metadata">

**Author:** ![Bharadwaj\_G](https://avatars.discourse-cdn.com/v4/letter/b/ecb155/32.png) [@Bharadwaj\_G](https://forum.inductiveautomation.com/u/Bharadwaj_G)\
**Post date:** [January 18, 2023, 4:31pm UTC](https://forum.inductiveautomation.com/t/heap-memory-download-gateway-down-with-out-of-memory-error/68437/5 "2023-01-18T16:31:16Z")

</div>

Hey thanks ...what will be default path, if am not specified heap dump path in parameters....

---

<div class="post-metadata">

**Author:** ![kcollins](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kcollins/32/19646_2.png) [@kcollins](https://forum.inductiveautomation.com/u/kcollins)\
**Post date:** [January 18, 2023, 8:45pm UTC](https://forum.inductiveautomation.com/t/heap-memory-download-gateway-down-with-out-of-memory-error/68437/6 "2023-01-18T20:45:22Z")

</div>

I think that you probably want a `+` in there, per Paul's message above on the [HeapDumpOnOutOfMemoryError](https://docs.oracle.com/en/java/javase/11/troubleshoot/command-line-options1.html#GUID-B5E16C7D-AE3C-40EB-A192-234C130766A6) option.

 ![2023-01-18 at 2.41 PM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/3/331a7ee9a1321e1ea7fc35ce83e605fb3d6b7720.png)

Also, I have seen some memory dumps (on slower I/O systems) take longer than the default 30 second watchdog time ([wrapper.ping.timeout](https://wrapper.tanukisoftware.com/doc/english/prop-ping-timeout.html)) in the wrapper, so you might consider increasing that for this testing if you're worried about the memory dump possibly taking a bit longer than that (not sure on the specs of your system or the memory size you're running).
