-1

Well, I started piping data into ES until it ran itself out of memory and crashed. I run free and i see that all memory is entirely used up.

I want to delete some data out of it (old data) but i can't query against localhost:9200, it rejects the connection.

How to fix the fact that i can't delete out the old data?

Micah
  • 10,295
  • 13
  • 66
  • 95
  • Do you know what your ES_HEAP_SIZE is compared to the total memory on the machine? See https://www.elastic.co/guide/en/elasticsearch/guide/current/heap-sizing.html and https://www.elastic.co/guide/en/elasticsearch/guide/current/_limiting_memory_usage.html – mmccaff Sep 24 '15 at 02:04

2 Answers2

0

If you want to go hardcore about it, you can always delete anything in your data folder:

> rm $ES_HOME/data/<clustername>

Note: replace <clustername> with your real cluster name (the default is elasticsearch)

Val
  • 207,596
  • 13
  • 358
  • 360
0

Stop indexing. If it stabilizes itself after few minute then try deleting the data again. Restart the cluster.

If it's still stuck, stop the indexing and restart the cluster.

In any case, if the nodes went OOM they need to be restarted, as the state the JVM is in is unknown.

Community
  • 1
  • 1
Andrei Stefan
  • 51,654
  • 6
  • 98
  • 89