I have Elasticsearch 2.2.0, 1 node cluster, 4g heap size, RAM: 7GB, CPU cores: 2.
I also have configured indices.fielddata.cache.size: 40%.
The problem is when I am using Kibana to query some thing (very simple queries), if it a single query it`s working fine, but if I continue to query some more - elastic is getting so slow and eventually stuck because the JVM heap usage (from Marvel) is getting to 87-95%. It happens also when I trying to load some Kibana dashboard and the only solution for this situation is to restart the elastic service or clear all cache.
Field data cache is just one of the things that can take up heap.
You also have too many shards.
So look at reindexing to reduce the shard count, change your templates to also create fewer shards, and also upgrade to doc values.
Otherwise you need to add more resources to ES.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.