Hi, We are seeing an out of memory exception on the Elasticsearech JVM , as it is running out of heap space after a while.
We are using elastic search version 1.7.0, with 1.7.0_79 version of java, when we looked at the heap dump we could see that around 80% of the retained heap size was with around 1.7 million clusterState objects in the heap. Any pointers on why the heap is being retained by this objects and not being released? How often are the clusterState objects created?
We are running a 4 node ES cluster and each ES JVM is being run with a heap space of 8g
ES_HEAP_SIZE=8g
Any help is much appreciated. Thanks.
Class Name | Shallow Heap | Retained Heap | Percentage
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor @ 0x750acc598 | 88 | 3,281,330,168 | 81.40%
|- java.util.concurrent.PriorityBlockingQueue @ 0x750b96760 | 40 | 3,281,329,448 | 81.40%
| |- java.lang.Object[1707954] @ 0x7f670bc00 | 6,831,832 | 3,281,329,304 | 81.40%
| | |- org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable @ 0x74fc721b8| 40 | 532,728 | 0.01%
| | |- org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable @ 0x74fc6fc38| 40 | 529,784 | 0.01%
| | |- org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable @ 0x74fc70eb0| 40 | 521,008 | 0.01%
| | |- org.elasticsearch.cluster.ClusterState @ 0x708454380 | 56 | 400,104 | 0.01%
| | |- org.elasticsearch.cluster.ClusterState @ 0x7e6174ff8 | 56 | 400,104 | 0.01%
| | |- org.elasticsearch.cluster.ClusterState @ 0x7bd933908 | 56 | 400,104 | 0.01%
| | |- org.elasticsearch.cluster.ClusterState @ 0x7cacb4780 | 56 | 400,104 | 0.01%
| | |- org.elasticsearch.cluster.ClusterState @ 0x73c460d50 | 56 | 400,104 | 0.01%
| | |- org.elasticsearch.cluster.ClusterState @ 0x7292082e8 | 56 | 400,104 | 0.01%
| | |- org.elasticsearch.cluster.ClusterState @ 0x73b610838 | 56 | 400,104 | 0.01%
| | |- org.elasticsearch.cluster.ClusterState @ 0x79fadbb98 | 56 | 400,104 | 0.01%
| | |- org.elasticsearch.cluster.ClusterState @ 0x7200bf040 | 56 | 400,104 | 0.01%
| | |- org.elasticsearch.cluster.ClusterState @ 0x7306d3430 | 56 | 400,104 | 0.01%
| | |- org.elasticsearch.cluster.ClusterState @ 0x7146e6fb0 | 56 | 400,104 | 0.01%
| | |- org.elasticsearch.cluster.ClusterState @ 0x72b5c88d0 | 56 | 400,104 | 0.01%
| | |- org.elasticsearch.cluster.ClusterState @ 0x724eac8f8 | 56 | 400,104 | 0.01%
| | |- org.elasticsearch.cluster.ClusterState @ 0x71d312540 | 56 | 400,104 | 0.01%
| | '- Total: 25 of 1,435,266 entries; 1,435,241 more | | |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------