# Memory leak problem

**URL:** <https://forum.inductiveautomation.com/t/memory-leak-problem/14348>\
**Category:** Ignition\
**Created:** [May 19, 2017, 2:13am UTC](https://forum.inductiveautomation.com/t/memory-leak-problem/14348 "2017-05-19T02:13:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vince](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@Vince](https://forum.inductiveautomation.com/u/Vince)\
**Post date:** [May 19, 2017, 2:13am UTC](https://forum.inductiveautomation.com/t/memory-leak-problem/14348/1 "2017-05-19T02:13:22Z")

</div>

It seems I have a memory leak problem.

Here is an image showing heap memory usage:

![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/f/fce88eb927d9f307a2cc96d2b4973e938ebeebd2.png)

The memory slowly increase util hit hit the maximum allowed. Then the gateway become very slow and unusable.

Someone have some experience with that? Any help to isolate the problem would be very appreciated.

Thanks.

---

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [May 19, 2017, 9:01am UTC](https://forum.inductiveautomation.com/t/memory-leak-problem/14348/2 "2017-05-19T09:01:01Z")

</div>

Can you take a look at this post: [Memory leak/GC issues in ignition gateway 7.9](http://forum.inductiveautomation.com/t/memory-leak-gc-issues-in-ignition-gateway-7-9/12496)

(where apparently the forum move deleted all my screenshots, but the graphs were the same as your graph here)

In my case, it wasn’t a memory leak, but the garbage collector taking too long to kick in and subsequently taking too long to clean everything up, stalling all threads in the process.

Switching to the G1GC garbage collector saved the day as that cleans up in smaller parts, causing shorter (even unnoticeable) stalls.

---

<div class="post-metadata">

**Author:** ![Vince](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@Vince](https://forum.inductiveautomation.com/u/Vince)\
**Post date:** [May 19, 2017, 2:59pm UTC](https://forum.inductiveautomation.com/t/memory-leak-problem/14348/3 "2017-05-19T14:59:15Z")

</div>

Thanks a lot for the information. I am actually testing G1GC and I’ll let it run for the weekend since the production is stopped for taht period. For the moment it looks good.

I’ll keep you posted.
