# OutOfMemoryError: Java heap space. Error Loading Project

**URL:** <https://forum.inductiveautomation.com/t/outofmemoryerror-java-heap-space-error-loading-project/59439>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 10, 2022, 10:39pm UTC](https://forum.inductiveautomation.com/t/outofmemoryerror-java-heap-space-error-loading-project/59439 "2022-05-10T22:39:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![josh3](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@josh3](https://forum.inductiveautomation.com/u/josh3)\
**Post date:** [May 10, 2022, 10:39pm UTC](https://forum.inductiveautomation.com/t/outofmemoryerror-java-heap-space-error-loading-project/59439/1 "2022-05-10T22:39:56Z")

</div>

Hi,

We can not longer open our project due to this error: OutOfMemoryError: Java heap space

Does anyone know how to fix this?

com.inductiveautomation.ignition.client.gateway\_interface.GatewayException: Java heap space  
at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.newGatewayException(GatewayInterface.java:351)  
at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.sendMessage(GatewayInterface.java:325)  
at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.sendMessage(GatewayInterface.java:278)  
at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.invoke(GatewayInterface.java:945)  
at com.inductiveautomation.ignition.designer.gateway.DTGatewayInterface.loadProject(DTGatewayInterface.java:358)  
at com.inductiveautomation.ignition.designer.IgnitionDesigner$StartupProjectDialogHandler.lambda$new$2(IgnitionDesigner.java:2008)  
at java.base/java.lang.Thread.run(Unknown Source)  
Caused by: java.lang.OutOfMemoryError: Java heap space  
at com.inductiveautomation.ignition.client.gateway\_interface.ResponseParser.startElement(ResponseParser.java:361)  
at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)  
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)  
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)  
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)  
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)  
at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)  
at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)  
at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)  
at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)  
at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)  
at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.getResponse(GatewayInterface.java:485)  
at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.sendMessage(GatewayInterface.java:283)  
… 5 more

Ignition v8.1.12 (b2021111810)  
Java: Azul Systems, Inc. 11.0.11

---

<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:** [May 10, 2022, 10:42pm UTC](https://forum.inductiveautomation.com/t/outofmemoryerror-java-heap-space-error-loading-project/59439/2 "2022-05-10T22:42:59Z")

</div>

Try setting and/or increasing the Max Heap before launching the Designer:

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

---

<div class="post-metadata">

**Author:** ![josh3](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@josh3](https://forum.inductiveautomation.com/u/josh3)\
**Post date:** [May 10, 2022, 10:57pm UTC](https://forum.inductiveautomation.com/t/outofmemoryerror-java-heap-space-error-loading-project/59439/3 "2022-05-10T22:57:02Z")

</div>

Hi Kevin,

The same error is still occuring.

---

<div class="post-metadata">

**Author:** ![josh3](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@josh3](https://forum.inductiveautomation.com/u/josh3)\
**Post date:** [May 10, 2022, 10:58pm UTC](https://forum.inductiveautomation.com/t/outofmemoryerror-java-heap-space-error-loading-project/59439/4 "2022-05-10T22:58:21Z")

</div>

This is on the gateway.

## Critical Issues

## High Memory

The Gateway is using more than 90% of available memory.

Allocate more memory to the Gateway process or alter your project to reduce the workload.

---

<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:** [May 10, 2022, 11:00pm UTC](https://forum.inductiveautomation.com/t/outofmemoryerror-java-heap-space-error-loading-project/59439/5 "2022-05-10T23:00:40Z")

</div>

Probably ought to give support a call and let them take a look.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [May 10, 2022, 11:16pm UTC](https://forum.inductiveautomation.com/t/outofmemoryerror-java-heap-space-error-loading-project/59439/6 "2022-05-10T23:16:33Z")

</div>

Gateway heap space is allocated in the ignition.conf file (under `<Ignition install directory>/data/ignition.conf`)
