# Out of memory errors

**URL:** <https://forum.inductiveautomation.com/t/out-of-memory-errors/77378>\
**Category:** Ignition\
**Created:** [August 3, 2023, 4:58pm UTC](https://forum.inductiveautomation.com/t/out-of-memory-errors/77378 "2023-08-03T16:58:15Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![elijah.roberts](https://avatars.discourse-cdn.com/v4/letter/e/a6a055/32.png) [@elijah.roberts](https://forum.inductiveautomation.com/u/elijah.roberts)\
**Post date:** [August 3, 2023, 4:58pm UTC](https://forum.inductiveautomation.com/t/out-of-memory-errors/77378/1 "2023-08-03T16:58:15Z")

</div>

Hello, I am working on a project and everything has been going fine the past month or so. I am running Ignition on a Docker instance and while I was in the designer last night everything started freezing up and my client wouldn't launch. It just gets stuck on the Loading Project step when refreshing the browser. I have attached the screenshot of my gateway logs. I haven't ever had memory issues before so I don't really know where to begin. Just hoping someone can point me in the right direction.

 ![Screenshot 2023-08-03 115155](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/6/6693ce8c2de2a20ab98828c518d43edaef247ce0.png)

---

<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:** [August 3, 2023, 4:59pm UTC](https://forum.inductiveautomation.com/t/out-of-memory-errors/77378/2 "2023-08-03T16:59:59Z")

</div>

Have your tried giving your docker instance more memory (and adjusting `ignition.conf` to use it)?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 3, 2023, 5:02pm UTC](https://forum.inductiveautomation.com/t/out-of-memory-errors/77378/3 "2023-08-03T17:02:24Z")

</div>

If it's possible to get a thread dump from the gateway right now it may help troubleshooting.

---

<div class="post-metadata">

**Author:** ![elijah.roberts](https://avatars.discourse-cdn.com/v4/letter/e/a6a055/32.png) [@elijah.roberts](https://forum.inductiveautomation.com/u/elijah.roberts)\
**Post date:** [August 3, 2023, 5:05pm UTC](https://forum.inductiveautomation.com/t/out-of-memory-errors/77378/4 "2023-08-03T17:05:44Z")

</div>

I have not yet. I was leaning towards that but wasn't sure simply because I haven't had this problem before. But this is the first project where I have pulled as much data as I am.

---

<div class="post-metadata">

**Author:** ![elijah.roberts](https://avatars.discourse-cdn.com/v4/letter/e/a6a055/32.png) [@elijah.roberts](https://forum.inductiveautomation.com/u/elijah.roberts)\
**Post date:** [August 3, 2023, 5:07pm UTC](https://forum.inductiveautomation.com/t/out-of-memory-errors/77378/5 "2023-08-03T17:07:21Z")

</div>

It's telling me my thread dump is too large to put on here. Is there a better way to get it to you?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 3, 2023, 5:07pm UTC](https://forum.inductiveautomation.com/t/out-of-memory-errors/77378/6 "2023-08-03T17:07:40Z")

</div>

Try zipping it first?

---

<div class="post-metadata">

**Author:** ![elijah.roberts](https://avatars.discourse-cdn.com/v4/letter/e/a6a055/32.png) [@elijah.roberts](https://forum.inductiveautomation.com/u/elijah.roberts)\
**Post date:** [August 3, 2023, 5:09pm UTC](https://forum.inductiveautomation.com/t/out-of-memory-errors/77378/7 "2023-08-03T17:09:18Z")

</div>

Yeah....Let's pretend I didn't ask that question 🤣  
[ThreadDump.zip](https://forum.inductiveautomation.com/uploads/short-url/fsB2uCnpC2AjcHu3rCYDQUG1Fsq.zip) (294.0 KB)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 3, 2023, 5:10pm UTC](https://forum.inductiveautomation.com/t/out-of-memory-errors/77378/8 "2023-08-03T17:10:59Z")

</div>

Ok, so the issue is that you're doing something in Perspective that is blowing up the thread count. Usually it's something like doing a long blocking action in a transform or something like that. There's like 4500 Perspective worker threads in that dump.

So you probably don't need more memory. Instead, I'd call support and have them try to help you figure out what's going on.

---

<div class="post-metadata">

**Author:** ![elijah.roberts](https://avatars.discourse-cdn.com/v4/letter/e/a6a055/32.png) [@elijah.roberts](https://forum.inductiveautomation.com/u/elijah.roberts)\
**Post date:** [August 3, 2023, 5:13pm UTC](https://forum.inductiveautomation.com/t/out-of-memory-errors/77378/9 "2023-08-03T17:13:43Z")

</div>

Ok thank you very much.

---

<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:** [August 3, 2023, 5:18pm UTC](https://forum.inductiveautomation.com/t/out-of-memory-errors/77378/10 "2023-08-03T17:18:32Z")

</div>

As a **temporary bandaid** , you could set a restriction on the number of threads Perspectives' various queues will create:  
[https://docs.inductiveautomation.com/display/DOC81/Gateway+Configuration+File+Reference#GatewayConfigurationFileReference-PerspectiveThreadpoolRestrictions](https://docs.inductiveautomation.com/display/DOC81/Gateway+Configuration+File+Reference#GatewayConfigurationFileReference-PerspectiveThreadpoolRestrictions)
