Out of memory in Elasticsearch

@warkolm:
Since this was closed. I would like to know different kind of ways to get the Out Of Memory.