Elasticsearch version:
9.5.0 Server OS version:
24.04.3 LTS (Noble Numbat)
Original install method (e.g. download page, yum, from source, etc.):
Docker
Describe the bug:
Kibana is consuming an unexpectedly high amount of memory when running in a Docker environment. Over time, Kibana's memory usage continues to increase, causing tasks to become stuck or remain incomplete.
As memory consumption reaches the available system/container limit, the server eventually triggers an Out-Of-Memory (OOM) condition and kills the Kibana process/container. This results in interrupted or stuck tasks and makes Kibana unavailable until the service is restarted.
The issue appears to be related to excessive or continuously increasing memory consumption by Kibana in the Docker environment Steps to reproduce:
Deploy Kibana in a Docker environment with the configured memory limits.
Run Kibana and perform the required tasks/workload for an extended period.
Monitor Kibana/container memory usage and observe that memory consumption progressively increases.
Once available memory is exhausted, observe that tasks become stuck and the server/container experiences an OOM kill.
Expected behavior:
Kibana should manage memory efficiently and release memory when it is no longer required. Memory consumption should remain within the configured Docker/container limits, and tasks should continue to execute without becoming stuck.
Kibana should not cause the server or container to reach an OOM condition under the expected workload. Screenshots (if relevant):
Provide logs and/or server output (if relevant):
Please refer the sceenshots Any additional context:
Kibana is running in a Docker environment.
Memory consumption appears to increase significantly over time.
Tasks become stuck when available memory becomes low.
The server eventually performs an OOM kill due to memory exhaustion.
Further investigation is required to determine whether the issue is caused by a Kibana memory leak, a specific workload/task, or insufficient Docker memory allocation.
@stephenb We have used the following configuration in the Docker Compose file: 4 GB RAM and 2 vCPUs. we have initiated the installation of Kibana and Elasticsearch.
What's this working in previous versions?
In previous version 9.4.3 we were facing similar issue some time but nowadays it is affected by almost everywhere.
What tests are you running against Kibana and Elasticsearch during this looks CI pipeline Alerting, workflows, SLOs etc?
We are initiating the installation of Elasticsearch and Kibana to verify whether our logging is working as expected.
A limit can be defined by setting --max-old-space-size in the node.options config file found inside the kibana/config folder or any other folder configured with the environment variable KBN_PATH_CONF. For example, in the Debian-based system, the folder is /etc/kibana.
The option accepts a limit in MB:
--max-old-space-size=2048
I am not sure that is accurate... what action you are looking for from this group.
Yes is there possibly a Bug... 9.5.0 has already been "Pulled" on Elastic cloud it was not stable enough I would retry when we get to 9.5.2 which should be released soon.
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.