Hello,
As I shared earlier we checked elasticsearch log and disabled the X-Pack. I am sharing yesterday's log here:
[2020-01-16T00:00:02,639][INFO ][o.e.c.m.MetaDataCreateIndexService] [elasticindex-0] [.monitoring-es-6-2020.01.16] creating index, cause [auto(bulk api)], templates [.monitoring-es], shards [1]/[1], mappings [doc]
[2020-01-16T00:00:17,738][WARN ][o.e.m.j.JvmGcMonitorService] [elasticindex-0] [gc][43399] overhead, spent [4.7s] collecting in the last [5.6s]
[2020-01-16T00:00:47,078][WARN ][o.e.m.j.JvmGcMonitorService] [elasticindex-0] [gc][43425] overhead, spent [3.7s] collecting in the last [4.2s]
[2020-01-16T00:01:06,939][WARN ][o.e.l.LicenseService ] [elasticindex-0]
[2020-01-16T00:01:22,667][WARN ][o.e.m.j.JvmGcMonitorService] [elasticindex-0] [gc][43456] overhead, spent [4.8s] collecting in the last [5.5s]
You said that if single request takes 1 to 5 sec then request is big, from last few days a call of a fresh index which barely has 10 record is also taking 4-5 secs (we monitored this on application insight).
In my post I forgot to share my elasticsearch version, it is 5.5. I am using Nest for queries.
"_nodes/hot_threads" does not returning much information:
::: {elasticindex-0}{*****}{}{...}{...:9300}{ml.enabled=true}
Hot threads at 2020-01-17T09:32:17.429Z, interval=500ms, busiestThreads=3, ignoreIdleThreads=true:
I think I have configuration related issues, initially it was working fine .. now when our users are increasing day by day then we are facing this issue.
Can you please guide me what I should share here to show my configuration details and can you suggest any change.
One point I need to share here: RAM on our VM was RAM : 16GB but our heap size was default
-Xms4g
-Xmx4g
we increased it to
-Xms8g
-Xmx8g
Still our query is taking time.
Thanks in advance.