# Java Heap Space out of memory error on Vision

**URL:** <https://forum.inductiveautomation.com/t/java-heap-space-out-of-memory-error-on-vision/105310>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [April 21, 2025, 12:28am UTC](https://forum.inductiveautomation.com/t/java-heap-space-out-of-memory-error-on-vision/105310 "2025-04-21T00:28:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mr.K001](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@Mr.K001](https://forum.inductiveautomation.com/u/Mr.K001)\
**Post date:** [April 21, 2025, 12:28am UTC](https://forum.inductiveautomation.com/t/java-heap-space-out-of-memory-error-on-vision/105310/1 "2025-04-21T00:28:36Z")

</div>

Hey everyone,  
I just update to 8.1.47 from 8.1.32 and now any time I go from a project to another project in vision, when I try to get back to the original project, I get the Java heap space error.. This started after the upgrade.  
My client memory is  
32mb min  
512mb max

And here is my ignition.conf screenshot of the max/min heap size

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/0/f0a33fff08b676b9239bdfdaf482f3487f87a504.png)

This has always worked fine before so I'm not sure what's going on.  
Anyone else had this issue?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/3/c3ae3126b53497b67d9e4d7bd2751c2bd74980c8.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:** [April 21, 2025, 12:36am UTC](https://forum.inductiveautomation.com/t/java-heap-space-out-of-memory-error-on-vision/105310/2 "2025-04-21T00:36:42Z")

</div>

I vaguely recall a report of a memory leak in Vision project switching. You should open a support ticket to confirm. Consider raising your client initial and max memory settings (512 & 1024 MB, perhaps).

This would not be related to the gateway settings in `ignition.conf`. (Your initial should be the same as the max in `ignition.conf` on production systems.)

---

<div class="post-metadata">

**Author:** ![Mr.K001](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@Mr.K001](https://forum.inductiveautomation.com/u/Mr.K001)\
**Post date:** [April 21, 2025, 12:39am UTC](https://forum.inductiveautomation.com/t/java-heap-space-out-of-memory-error-on-vision/105310/3 "2025-04-21T00:39:34Z")

</div>

I did switch to max 512mb on client and that seems to have fixed it.  
I'll keep it at that for now. If I need to, I'll go to 1024 MB.  
Thanks for the quick response @pturmel

---

<div class="post-metadata">

**Author:** ![Mr.K001](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@Mr.K001](https://forum.inductiveautomation.com/u/Mr.K001)\
**Post date:** [April 21, 2025, 12:47am UTC](https://forum.inductiveautomation.com/t/java-heap-space-out-of-memory-error-on-vision/105310/4 "2025-04-21T00:47:10Z")

</div>

I'm assuming that's raising the min and max on both projects, correct?

Also, what you mean when you say the initial should be the same as max in ignition.conf?

---

<div class="post-metadata">

**Author:** ![michael.flagler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michael.flagler/32/26272_2.png) [@michael.flagler](https://forum.inductiveautomation.com/u/michael.flagler)\
**Post date:** [April 21, 2025, 4:44am UTC](https://forum.inductiveautomation.com/t/java-heap-space-out-of-memory-error-on-vision/105310/5 "2025-04-21T04:44:40Z")

</div>

The general best practice is to have Ignition allocate all the memory when it loads as it will eventually reach max, so might as well have it allocate it all that way it's available from the start.

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [April 21, 2025, 2:57pm UTC](https://forum.inductiveautomation.com/t/java-heap-space-out-of-memory-error-on-vision/105310/6 "2025-04-21T14:57:39Z")

</div>

> [@pturmel](#):
>
> I vaguely recall a report of a memory leak in Vision project switching.

Maybe this is what you're remembering? This particular case was for a much earlier Ignition version.

> [@System.util.retarget heap space errors](https://forum.inductiveautomation.com/t/system-util-retarget-heap-space-errors/82871/3):
>
> What Ignition version are you on? I had an issue where system.util.retarget appeared to be leaking memory on 8.1.5. Support recommended I update to 8.1.13 and the issue went away. I think 8.1.13 was the newest version at the time, so it may have been fixed somewhere between those two versions. Some anecdata I collected at that time using two minimal projects that only had one window. Each window contained only one button retargeting to each other project: [image] It was support ticket #36649 …

---

<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:** [April 21, 2025, 3:02pm UTC](https://forum.inductiveautomation.com/t/java-heap-space-out-of-memory-error-on-vision/105310/7 "2025-04-21T15:02:31Z")

</div>

Maybe. I thought more recent. If the problem recurs, the OP should open a support ticket.

---

<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:** [April 21, 2025, 4:17pm UTC](https://forum.inductiveautomation.com/t/java-heap-space-out-of-memory-error-on-vision/105310/8 "2025-04-21T16:17:48Z")

</div>

> [@Mr.K001](#):
>
> any time I go from a project to another project in vision, when I try to get back to the original project

What do you mean by this?

Are you switching projects in the _client instance_ (via `system.util.retarget`?) or are you switching projects you have open _in the designer_? That's a totally separate memory setting (and still as of 8.1.47 subject to a memory leak, unfortunately).

---

<div class="post-metadata">

**Author:** ![Mr.K001](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@Mr.K001](https://forum.inductiveautomation.com/u/Mr.K001)\
**Post date:** [April 21, 2025, 6:26pm UTC](https://forum.inductiveautomation.com/t/java-heap-space-out-of-memory-error-on-vision/105310/9 "2025-04-21T18:26:01Z")

</div>

> [@paul-griffith](#):
>
> `system.util.retarget`?

Sorry for not being clear enough. I use system.util.retarget to switch between projects in Vision.
