# Error trying to save and publish project

**URL:** <https://forum.inductiveautomation.com/t/error-trying-to-save-and-publish-project/35149>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [May 29, 2020, 7:57am UTC](https://forum.inductiveautomation.com/t/error-trying-to-save-and-publish-project/35149 "2020-05-29T07:57:33Z")\
**Posts on this page:** 9\
**Page:** 1

<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 29, 2020, 7:57am UTC](https://forum.inductiveautomation.com/t/error-trying-to-save-and-publish-project/35149/1 "2020-05-29T07:57:33Z")

</div>

I’m getting the below error when trying to save my project…

```auto
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space

```

Is there anything I can do? I’ve already exported my project. I’ve restarted the gateway a couple times as well, but I presume it’s the Designer memory that’s the issue?

---

<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:** [May 29, 2020, 12:12pm UTC](https://forum.inductiveautomation.com/t/error-trying-to-save-and-publish-project/35149/2 "2020-05-29T12:12:24Z")

</div>

If that error is in the Designer’s console, then yes, designer memory is the problem. Give it more.

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [May 29, 2020, 1:55pm UTC](https://forum.inductiveautomation.com/t/error-trying-to-save-and-publish-project/35149/3 "2020-05-29T13:55:43Z")

</div>

Do you have any very intensive operations running? Say a python script that selects all the rows of a database table into a dataset, and the table is very big? I haven’t had the run out of Java Heap Space error when saving designer, but I’ve run into it in general and where a python script is holding onto a very large usually dataset object.

---

<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 29, 2020, 5:51pm UTC](https://forum.inductiveautomation.com/t/error-trying-to-save-and-publish-project/35149/4 "2020-05-29T17:51:31Z")

</div>

> [@pturmel](#):
>
> Designer’s console

That's the one. I assume there's no way to fix it at this stage, I have to close and reopen the designer? I've already increased memory allocation

---

<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:** [May 29, 2020, 9:11pm UTC](https://forum.inductiveautomation.com/t/error-trying-to-save-and-publish-project/35149/5 "2020-05-29T21:11:12Z")

</div>

Hope you didn’t wait–yes, you have to restart the designer.

---

<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 29, 2020, 10:23pm UTC](https://forum.inductiveautomation.com/t/error-trying-to-save-and-publish-project/35149/6 "2020-05-29T22:23:59Z")

</div>

I was asleep, haha. It was 3am here when I posted my last reply, having woken up during the night. I left my laptop running just in case there was some magical answer, but sounds like there’ll be no magic today.  
Actually, I’ll try opening another designer and copying the windows I’ve changed across.

Cheers

Edit: is there a way to see what the heap memory is? And why didn’t the whole designer just crash?

---

<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:** [May 29, 2020, 10:43pm UTC](https://forum.inductiveautomation.com/t/error-trying-to-save-and-publish-project/35149/7 "2020-05-29T22:43:11Z")

</div>

Look at the diagnostics pages in the designer.

---

<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 29, 2020, 10:54pm UTC](https://forum.inductiveautomation.com/t/error-trying-to-save-and-publish-project/35149/8 "2020-05-29T22:54:04Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/bb7e866e1ddebc7dc96f106372ec70830804ebb6.png)

Memory is only at 200MB, but Designer Memory in the gateway settings was set to 2GB originally (have increased now to 4GB)

---

<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:** [May 30, 2020, 2:10am UTC](https://forum.inductiveautomation.com/t/error-trying-to-save-and-publish-project/35149/9 "2020-05-30T02:10:23Z")

</div>

Take a close look at your launcher shortcuts–you can override memory settings there and I suspect you did.
