I got alerted that our CPU usage is high and according to some metrics elasticsearch is consuming cpu. This was the last log of elasticsearch, but it's still working fine though
[INFO ][o.e.m.j.JvmGcMonitorService] [iJXOMG0] [gc][2923498] overhead, spent [261ms] collecting in the last [1s]
Shortly after this, the alert triggered
Another thing is that the last time this log showed the number seems to be small
[o.e.m.j.JvmGcMonitorService] [iJXOMG0] [gc][304] overhead, spent [272ms] collecting in the last [1s]
How could I lower down the CPU usage?
Elasticsearch is running on docker and I have set ES_JAVA_OPTS: "-Xmx512m -Xms512m"
Doesn't the logs go out into STDOUT? If so then the last logs of elasticsearch are the one I have posted originally. If there is a different file that elasticsearch logs into then I would appreciate it if you could help me find it.
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.