How to address out of memory errors ( OOM )