Dump memory on OOM to investigate #3818