I have a blog (30 small articles) based on Symfony2.6 and running on a small Ubuntu14.04 VPS (4 GB of memory, 50 GB of disk space). I use ElasticSearch, throwing FOS ElasticaBundle so that users / readers can search for articles on this blog (by keywords and categories what it is).
Everything went well for almost 2 months, and now it turned out that the blog is completely inaccessible!
I realized that this is due to some kind of "OOM" problem.
I tried setting index.fieddata.cache.size to 40%.
I tried to take a look at the main plugin. He replied that the cluster is not connected.
I tried / _nodes / stats / indices / fielddata? fields = * request. We are talking about 5572 bytes used for this node, which is not so much.
When I try to stop the node using Ctrl + C in the terminal, it took a long time, it prints:
[2016-01-04 23: 38: 37,085] [INFO] [node] [November] stop ... An exception occurred in the thread "elasticsearch [new] [common] [T # 4]" java.lang.OutOfMemoryError: space Java heaps
I also found out that my elasticsearch1 .... / data folder was absolutely huuge, about 26GB. Soon I will leave the disk space and do not know if I can simply delete the old folders manually, for example.
Is there a simple command line tool that can help get rid of all this OOM problem in seconds? Or something like that?
ElasticSearch configuration (the only one I could find in / elastiseach -1.7.3 / config /):
Thanks in advance for your help.