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.
Why is the heap stuck like that?