# java.lang.OutOfMemoryError: Java heap space in Rich Client

**URL:** <https://forum.servoy.com/t/java-lang-outofmemoryerror-java-heap-space-in-rich-client/11318>\
**Category:** Classic Servoy\
**Created:** [October 23, 2009, 3:21pm UTC](https://forum.servoy.com/t/java-lang-outofmemoryerror-java-heap-space-in-rich-client/11318 "2009-10-23T15:21:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ars](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@ars](https://forum.servoy.com/u/ars)\
**Post date:** [October 23, 2009, 3:21pm UTC](https://forum.servoy.com/t/java-lang-outofmemoryerror-java-heap-space-in-rich-client/11318/1 "2009-10-23T15:21:07Z")

</div>

Hi All,

I am getting, “java.lang.OutOfMemoryError: Java heap space”, in the Java Console, while running the Solution in Rich Client. I suppose, It may be due to the Image loading in the Media Field as the Image is coming from the database.

To address the issue, I have changed the property “servoy.maxClientHeap” from 64(Default) to 500. I am just concern about increasing the Heap Size to 500. Does it impact the memory at client/server’s end?

Thanks,  
Arup.

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [October 23, 2009, 3:23pm UTC](https://forum.servoy.com/t/java-lang-outofmemoryerror-java-heap-space-in-rich-client/11318/2 "2009-10-23T15:23:55Z")

</div>

It does not impact your server memory usage, but isn’t going from 64 to 500 a bit drastic?

---

<div class="post-metadata">

**Author:** ![ars](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@ars](https://forum.servoy.com/u/ars)\
**Post date:** [October 26, 2009, 10:33am UTC](https://forum.servoy.com/t/java-lang-outofmemoryerror-java-heap-space-in-rich-client/11318/3 "2009-10-26T10:33:17Z")

</div>

Thanks Marcel for your response.

I just tried by setting a large number, so that we won’t fail. However, 128 is a good fit for us.
