Es node suddenly OOM with "fatal error on the network layer"

By default Elasticsearch will write a heap dump when it encounters an OutOfMemoryError. The best thing to do is to open this heap dump (e.g. in MAT) and investigate what was using all the heap.