Out of memory solved with tuning cache size.