Dennis Zheleznyak

Dennis Zheleznyak

DevOps Engineer bigpanda

© 2021

Check Elasticsearch JVM usage

If you’ve stumbled upon the following error:

May 26 10:03:31 prod-xxx kernel: [17974674.639265] elasticsearch[p invoked oom-killer: gfp_mask=0x280da, order=0, oom_score_adj=0

Make sure that Elasticsearch is not using your whole memory by:

free -m

In addition, check that Elasticsearch is not using the entire heap size:

curl -s -X GET https://localhost:9200/_nodes/<NodeID>/stats?pretty | grep heap_used_percent

You can get the Node’s ID by using:

curl -s -X GET https://localhost:9200/_nodes?pretty