# CloverDataReader memory issues

**URL:** <https://forum.cloverdx.com/t/cloverdatareader-memory-issues/1079>\
**Category:** CloverDX Platform\
**Created:** [June 7, 2012, 12:00am UTC](https://forum.cloverdx.com/t/cloverdatareader-memory-issues/1079 "2012-06-07T00:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ccasano](https://avatars.discourse-cdn.com/v4/letter/c/7993a0/32.png) [@ccasano](https://forum.cloverdx.com/u/ccasano)\
**Post date:** [June 7, 2012, 12:00am UTC](https://forum.cloverdx.com/t/cloverdatareader-memory-issues/1079/1 "2012-06-07T00:00:00Z")

</div>

I have a 25GB Clover file that I’m trying to read using the CloverDataReader and keep getting hit with Java heap space issues. It appears the component is putting all of the records in memory as it reads??? I tried using a filter right after the CloverDataReader in hopes or reducing the JVM foot print but that doesn’t seem to work either. I’ve increased the JVM size as much as I can (~7GB) but still no dice. Also tried change the edge types and some defaultProperties. Any other ideas or advise are certainly welcomed.

ERROR [WatchDog] - Node CLOVER\_READER0 finished with status: ERROR caused by: Java heap space  
ERROR [WatchDog] - Node CLOVER\_READER0 error details:  
java.lang.OutOfMemoryError: Java heap space  
at java.nio.HeapByteBuffer.(HeapByteBuffer.java:39)  
at java.nio.ByteBuffer.allocate(ByteBuffer.java:312)

Thanks,  
Chris

---

<div class="post-metadata">

**Author:** ![David\_Hlidek](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@David\_Hlidek](https://forum.cloverdx.com/u/David_Hlidek)\
**Post date:** [June 11, 2012, 8:41am UTC](https://forum.cloverdx.com/t/cloverdatareader-memory-issues/1079/2 "2012-06-11T08:41:59Z")

</div>

Hi ccasano,

CloverDataReader is reading file sequentially, only requested records at time. But we are aware of bug [https://bug.javlin.eu/browse/CL-2252](https://bug.javlin.eu/browse/CL-2252) causing similar issues as you have. It will be fixed in 3.3M3 released within month.
