Elasticsearch throwing some overhead warning in logs

HI Team,
we are getting below response in elasticsearch log , anyone can help me on this why im getting this kind of error on it,

[2021-02-12T07:29:17,371][WARN ][o.e.m.j.JvmGcMonitorService] [datanode1] [gc][242917] overhead, spent [1.6s] collecting in the last [2.1s]
[2021-02-12T08:16:26,764][INFO ][o.e.m.j.JvmGcMonitorService] [datanode1] [gc][245742] overhead, spent [531ms] collecting in the last [1.1s]
[2021-02-12T08:16:49,825][INFO ][o.e.m.j.JvmGcMonitorService] [datanode1] [gc][245765] overhead, spent [282ms] collecting in the last [1s]
[2021-02-12T08:19:40,334][INFO ][o.e.m.j.JvmGcMonitorService] [datanode1] [gc][245935] overhead, spent [294ms] collecting in the last [1.1s]
[2021-02-12T08:19:44,336][INFO ][o.e.m.j.JvmGcMonitorService] [datanode1] [gc][245939] overhead, spent [274ms] collecting in the last [1s]
[2021-02-12T08:19:49,383][INFO ][o.e.m.j.JvmGcMonitorService] [datanode1] [gc][245944] overhead, spent [254ms] collecting in the last [1s]
[2021-02-12T08:19:51,454][INFO ][o.e.m.j.JvmGcMonitorService] [datanode1] [gc][245946] overhead, spent [307ms] collecting in the last [1s]
[2021-02-12T08:20:10,633][INFO ][o.e.m.j.JvmGcMonitorService] [datanode1] [gc][245965] overhead, spent [264ms] collecting in the last [1s]
[2021-02-12T08:20:35,658][INFO ][o.e.m.j.JvmGcMonitorService] [datanode1] [gc][245990] overhead, spent [258ms] collecting in the last [1s]

This 'WARNING' not an error, indicate that maybe you have not enough memory RAM to the JVM (elasticsearch) and the Garbage collector need that time to clear the memory, thats a problem, while GC is working your JVM will not responsive.

You have to check the dimensions of the cluster (xmx xms in the jvm.conf in the elasticsearch directory)

To my a gold rule to do that are no more than 30GB of RAM for JVM and with the same amount to storage cache and 4 more to the OS, and 30 Gb of data per 1GB of RAM to the JVM process.

Another metric to keep in mind are the number of shards per node in the cluster, shards are not free.

Let me share some interesting articles that let you understand better that:

Kind regards
ale :slight_smile:

Thanks for the reply @alejandrosl .

I hope this warn will not cause any issue in elasticsearch.

You are very welcome but ...
@Ganesh2303 the warning is not a problem but you have to check the resources of your cluster, the GC are indicate you that you need more memory (surely)

One more thing, the speed of a cluster is as fast as the slowest of its nodes

:slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.