# Out of memory Java Heap Space

**URL:** <https://forum.inductiveautomation.com/t/out-of-memory-java-heap-space/10206>\
**Category:** General Discussion\
**Created:** [July 9, 2015, 4:01pm UTC](https://forum.inductiveautomation.com/t/out-of-memory-java-heap-space/10206 "2015-07-09T16:01:20Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![DNal](https://avatars.discourse-cdn.com/v4/letter/d/ba9def/32.png) [@DNal](https://forum.inductiveautomation.com/u/DNal)\
**Post date:** [July 9, 2015, 4:01pm UTC](https://forum.inductiveautomation.com/t/out-of-memory-java-heap-space/10206/1 "2015-07-09T16:01:20Z")

</div>

Machine: Windows 7 , 8 GB RAM, 64 bit  
Client Memory on Ignition Properties are : Initial 32M Maximum 512M

When the Project update available is updated on Client this pop up error appears.  
java.lang.OutOfMemoryError: Java heap space  
at java.util.Arrays.copyOf(Unknown Source)  
at java.io.ByteArrayOutputStream.grow(Unknown Source)  
at java.io.ByteArrayOutputStream.ensureCapacity(Unknown Source)  
at java.io.ByteArrayOutputStream.write(Unknown Source)  
at sun.nio.cs.StreamEncoder.writeBytes(Unknown Source)  
at sun.nio.cs.StreamEncoder.implWrite(Unknown Source)  
at sun.nio.cs.StreamEncoder.write(Unknown Source)  
at sun.nio.cs.StreamEncoder.write(Unknown Source)  
at java.io.OutputStreamWriter.write(Unknown Source)  
at java.io.PrintWriter.write(Unknown Source)  
at java.io.PrintWriter.write(Unknown Source)  
at java.io.PrintWriter.print(Unknown Source)  
at com.inductiveautomation.ignition.common.project.Project.toXML(Project.java:882)  
at com.inductiveautomation.ignition.common.project.Project.toXML(Project.java:819)  
at com.inductiveautomation.ignition.common.project.Project.toXML(Project.java:809)  
at com.inductiveautomation.factorypmi.application.runtime.UpdateProjectPane$ApplyDiff.run(UpdateProjectPane.java:155)  
at com.inductiveautomation.ignition.client.launch.AbstractStepRunner.run(AbstractStepRunner.java:32)  
at java.lang.Thread.run(Unknown Source)

---

<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:** [July 9, 2015, 4:40pm UTC](https://forum.inductiveautomation.com/t/out-of-memory-java-heap-space/10206/2 "2015-07-09T16:40:06Z")

</div>

Thanks, looks like something we’ll have to fix on our end 😕

---

<div class="post-metadata">

**Author:** ![DNal](https://avatars.discourse-cdn.com/v4/letter/d/ba9def/32.png) [@DNal](https://forum.inductiveautomation.com/u/DNal)\
**Post date:** [July 13, 2015, 1:06pm UTC](https://forum.inductiveautomation.com/t/out-of-memory-java-heap-space/10206/3 "2015-07-13T13:06:37Z")

</div>

Hi Kevin,

I don’t suppose there will be a fix any time soon??

---

<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:** [July 15, 2015, 3:11pm UTC](https://forum.inductiveautomation.com/t/out-of-memory-java-heap-space/10206/4 "2015-07-15T15:11:33Z")

</div>

Hopefully 7.7.6, which I guess by any reasonable definition isn’t soon.

If we can come up with some kind of workaround I’ll post it here. Do you have any idea how large the project your updating is?

---

<div class="post-metadata">

**Author:** ![jim\_lapratt](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@jim\_lapratt](https://forum.inductiveautomation.com/u/jim_lapratt)\
**Post date:** [July 16, 2015, 11:45am UTC](https://forum.inductiveautomation.com/t/out-of-memory-java-heap-space/10206/5 "2015-07-16T11:45:15Z")

</div>

I will bite…

Is the size of the project you are referring to visible in designer or just the size on disk?

---

<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:** [July 16, 2015, 12:04pm UTC](https://forum.inductiveautomation.com/t/out-of-memory-java-heap-space/10206/6 "2015-07-16T12:04:48Z")

</div>

[quote=“jim\_lapratt”]I will bite…

Is the size of the project you are referring to visible in designer or just the size on disk?[/quote]

I’m not sure if it’s visible in the designer… the size of the .proj file is what I’m after I guess.

Does increasing the client’s max memory alleviate the issue?

---

<div class="post-metadata">

**Author:** ![DNal](https://avatars.discourse-cdn.com/v4/letter/d/ba9def/32.png) [@DNal](https://forum.inductiveautomation.com/u/DNal)\
**Post date:** [July 17, 2015, 4:01pm UTC](https://forum.inductiveautomation.com/t/out-of-memory-java-heap-space/10206/7 "2015-07-17T16:01:55Z")

</div>

the .proj size is 40MB

---

<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:** [July 17, 2015, 4:11pm UTC](https://forum.inductiveautomation.com/t/out-of-memory-java-heap-space/10206/8 "2015-07-17T16:11:34Z")

</div>

Okay. That’s a pretty large project, for whatever reason.

But we need to fix the update to work regardless of the project size. The ticket is assigned to the 7.7.6 milestone.

---

<div class="post-metadata">

**Author:** ![dsulima](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@dsulima](https://forum.inductiveautomation.com/u/dsulima)\
**Post date:** [November 12, 2015, 7:37pm UTC](https://forum.inductiveautomation.com/t/out-of-memory-java-heap-space/10206/9 "2015-11-12T19:37:52Z")

</div>

Verified the fix for this issue in Ignition 7.7.6-rc1.
