This means your heap is full. You have too many and/or heavy objects in memory.
Possible causes:
you keep references to unused objects, and create too many of them
Solution: check for memory leaksyou actually need all those references, but your heap is too small
Solution: increase the heap
Since your exception happens after a long time, I believe the first one is probably your problem.