可以参考以下2篇文章:
https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration-memory.html
https://dzone.com/articles/just-say-no-swapping