# Gateways failed to restart after increasing Max/Min Heap?

**URL:** <https://forum.inductiveautomation.com/t/gateways-failed-to-restart-after-increasing-max-min-heap/112783>\
**Category:** Ignition\
**Created:** [December 12, 2025, 12:40pm UTC](https://forum.inductiveautomation.com/t/gateways-failed-to-restart-after-increasing-max-min-heap/112783 "2025-12-12T12:40:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabriel.almeida](https://avatars.discourse-cdn.com/v4/letter/g/e36b37/32.png) [@gabriel.almeida](https://forum.inductiveautomation.com/u/gabriel.almeida)\
**Post date:** [December 12, 2025, 12:40pm UTC](https://forum.inductiveautomation.com/t/gateways-failed-to-restart-after-increasing-max-min-heap/112783/1 "2025-12-12T12:40:31Z")

</div>

Since a few days we’re experiencing slow performance on the ignition front-end, and designer also experiences the same slowness.

I’ve been looking at network and machine performance (hardware/vm) but can’t really find anything that stands out.

Current readings, on the gateways and respective redundancies:

VM CRGW01 10GHZ CPU

```
                            38GB OF 96GB - MEMORY

                            172GB IN USE - STORAGE

                            NO DISC QUEUING

                            6 vCPU READY 9-39 the time a vcpu has to wait before getting scheduled the requested resource, in milliseconds

                            NO DISC QUEUING

```

VM CRGW02 191 MHZ CPU

```
                            1.92GB - MEMORY

                            96GB - STORAGE

                            NO DISC QUEUING

                            6vCPU READY 9-23 the time a vcpu has to wait before getting scheduled the requested resource, in milliseconds

```

VM CRGW01 OS

```
            17% DISK OF 58GB

            84% OF MEMORY 96GB (should be ok for a linux machine)

            11% CPU

            LOAD AVERAGE 8 8 8

```

VM CRGW02 OS

```
            15% DISK OF 58gB

            54% OF MEMORY 96GBS

            11% CPU

            LOAD AVERAGE 0.23 0.24 0.15        

```

We’ve already upgraded to 96GB per VM for the OS.

The GW mem usage in ignition itself is about 30GB, (at first reboot after running for 2 weeks it was around 47).

When trying to go for a higher java mem.pool we’ve had some weird issues that the service would not start.

max.heap=73728

init.heap=18432

**SERVICE WONT START**

max.heap=65554

init.heap=12288

**SERVICE WONT START**

max.heap=57344

init.heap=12288

**SERVICE WONT START**

max.heap=49152

min.heap=12288

No issues starting but it gets slow pretty fast.

I’ve been trying some different settings for the OS through the sysctl.conf file but no avail

If someone has any idea, or has experienced similar situations, it would be lovely to hear from you.

Regards,

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [December 12, 2025, 1:08pm UTC](https://forum.inductiveautomation.com/t/gateways-failed-to-restart-after-increasing-max-min-heap/112783/2 "2025-12-12T13:08:16Z")

</div>

My first though is that, if the designer is also being slow, that it points more to a design issue than a hardware issue.

My second thought is that the init.heap and max.heap should be that same. May as well allocate it right away.

---

<div class="post-metadata">

**Author:** ![kyler.kamyszek](https://avatars.discourse-cdn.com/v4/letter/k/a4c791/32.png) [@kyler.kamyszek](https://forum.inductiveautomation.com/u/kyler.kamyszek)\
**Post date:** [December 12, 2025, 1:08pm UTC](https://forum.inductiveautomation.com/t/gateways-failed-to-restart-after-increasing-max-min-heap/112783/3 "2025-12-12T13:08:56Z")

</div>

Sounds like a memory leak issue more than a resource limit. Also, if you’re using that much RAM efficiently (you probably are not) I would think you would need an appropriate number of cores.

As soon as you run out of memory, your overhead turns into context switching to the backlog of processes you’re trying to create.

I would focus on anything in the gateway that is running Asynchronous processes, one or more is probably firing a new thread before the original is done.

---

<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:** [December 12, 2025, 1:15pm UTC](https://forum.inductiveautomation.com/t/gateways-failed-to-restart-after-increasing-max-min-heap/112783/4 "2025-12-12T13:15:06Z")

</div>

Are those servers running **other** functions? Like your database? If so, don't do that. Also, are the hypervisors equipped with enough physical RAM for **all** of the VMs they hold? (In other words, are your hypervisors over-committed?)

It sounds like either the VMs themselves or the hypervisor is "thrashing", where disk storage is used to extend the available RAM, and everything slows down as swapping starts.
