# Server hangs due to high uses CPU and memory by elasticsearch or kibana

**URL:** <https://discuss.elastic.co/t/server-hangs-due-to-high-uses-cpu-and-memory-by-elasticsearch-or-kibana/389879>\
**Category:** Elastic Search\
**Tags:** docker\
**Created:** [August 23, 2026, 1:37pm UTC](https://discuss.elastic.co/t/server-hangs-due-to-high-uses-cpu-and-memory-by-elasticsearch-or-kibana/389879 "2026-08-23T13:37:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![yogesh119905](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yogesh119905/32/145298_2.png) [@yogesh119905](https://discuss.elastic.co/u/yogesh119905)\
**Post date:** [August 23, 2026, 1:37pm UTC](https://discuss.elastic.co/t/server-hangs-due-to-high-uses-cpu-and-memory-by-elasticsearch-or-kibana/389879/1 "2026-08-23T13:37:59Z")

</div>

**Kibana version:**  
9.5.0

**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:**

1. Deploy Kibana in a Docker environment with the configured memory limits.
2. Run Kibana and perform the required tasks/workload for an extended period.
3. Monitor Kibana/container memory usage and observe that memory consumption progressively increases.
4. 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):**

 ![Image](https://us1.discourse-cdn.com/elastic/original/3X/4/c/4cae8b3523a00f793721e718974d42c566786af7.png)

 ![Image](https://us1.discourse-cdn.com/elastic/original/3X/1/7/17e5050d40458302432b3f62300f63bb7ee5900c.png)

**Errors in browser console (if relevant):**

**Provide logs and/or server output (if relevant):**  
Please refer the sceenshots  
**Any additional context:**

1. Kibana is running in a Docker environment.
2. Memory consumption appears to increase significantly over time.
3. Tasks become stuck when available memory becomes low.
4. The server eventually performs an OOM kill due to memory exhaustion.
5. 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.

---

<div class="post-metadata">

**Author:** ![yogesh119905](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yogesh119905/32/145298_2.png) [@yogesh119905](https://discuss.elastic.co/u/yogesh119905)\
**Post date:** [August 23, 2026, 2:51pm UTC](https://discuss.elastic.co/t/server-hangs-due-to-high-uses-cpu-and-memory-by-elasticsearch-or-kibana/389879/2 "2026-08-23T14:51:54Z")

</div>

@stephenb Can you please share your observation on this issue?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [August 23, 2026, 4:58pm UTC](https://discuss.elastic.co/t/server-hangs-due-to-high-uses-cpu-and-memory-by-elasticsearch-or-kibana/389879/3 "2026-08-23T16:58:48Z")

</div>

Hi @yogesh119905

It seems like you posted duplicate topics.

I am not sure if I have thoughts yet

Question, a couple key metrics / questions

What is the memory allocated to the container for Kibana / Elasticsearch.

Sorry I can not (and many other can not) ready the screen shoot of those numbers, especially with not explanation.

[2GB is the recommended minimum](https://www.elastic.co/docs/deploy-manage/production-guidance/kibana-configure-memory)

You can also limit the memory used.

What is the unexpectedly high that you're seeing? I don't see any of those stats in your post?

What's this working in previous versions?

What tests are you running against Kibana and Elasticsearch during this looks CI pipeline Alerting, workflows, SLOs etc

Let's get started with these things them perhaps we can work understanding of what's going on...

---

<div class="post-metadata">

**Author:** ![yogesh119905](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yogesh119905/32/145298_2.png) [@yogesh119905](https://discuss.elastic.co/u/yogesh119905)\
**Post date:** [August 24, 2026, 4:47am UTC](https://discuss.elastic.co/t/server-hangs-due-to-high-uses-cpu-and-memory-by-elasticsearch-or-kibana/389879/4 "2026-08-24T04:47:07Z")

</div>

@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**.

## docker compose file

version: "2"  
services:  
elastic:  
image: XXXXXXXX/elasticsearch/elasticsearch:9.5.0  
container\_name: elastic  
environment:

- node.name=log-01
- cluster.name=logging-cluster
- discovery.type=single-node
- bootstrap.memory\_lock=true
- ELASTIC\_PASSWORD=XXXX
- "ES\_JAVA\_OPTS=-Xms512m -Xmx512m"
- xpack.security.enabled=true
- xpack.security.http.ssl.enabled=true
- xpack.security.http.ssl.verification\_mode=none
- xpack.security.http.ssl.key=/usr/share/elasticsearch/config/ssl/XXXX.key
- xpack.security.http.ssl.certificate=/usr/share/elasticsearch/config/ssl/XXXX.crt  
volumes:
- /var/molecule-platform/logging-new/ssl:/usr/share/elasticsearch/config/ssl
- /var/molecule-platform/logging-new/users:/usr/share/elasticsearch/config/users
- /var/molecule-platform/logging-new/users\_roles:/usr/share/elasticsearch/config/users\_roles  
ulimits:  
memlock:  
soft: -1  
hard: -1  
ports:
- "9200:9200"  
restart: unless-stopped  
kibana:  
image: XXXX/kibana/kibana:9.5.0  
container\_name: kibana  
environment:  
ELASTICSEARCH\_HOSTS: '["[https://elastic:9200](https://elastic:9200)"]'  
volumes:
- /var/molecule-platform/logging-new/ssl:/usr/share/kibana/config/ssl
- /var/molecule-platform/logging-new/kibana/kibana.yml:/usr/share/kibana/config/kibana.yml  
ports:
- "5601:5601"  
restart: unless-stopped

Below are the memory uses by container

![Screenshot from 2026-08-24 10-09-30](https://us1.discourse-cdn.com/elastic/original/3X/d/6/d6066f9ae3c93570d60124b19ad763688c7d2378.png)

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.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [August 24, 2026, 3:41pm UTC](https://discuss.elastic.co/t/server-hangs-due-to-high-uses-cpu-and-memory-by-elasticsearch-or-kibana/389879/5 "2026-08-24T15:41:25Z")

</div>

Repeat: Posting images of text is discouraged, please just post the text.

That said Kibana is taking more resources these days. You can limit the memory using this setting perhaps you should try that.

Did you read this page?

> **[Configure Kibana memory | Elastic Docs](https://www.elastic.co/docs/deploy-manage/production-guidance/kibana-configure-memory)**
>
> Kibana has a default memory limit that scales based on total memory available. The default limit is sufficient for core Kibana functionality. In some...

> ## **[Limit memory usage](https://www.elastic.co/docs/deploy-manage/production-guidance/kibana-configure-memory#memory)**
> 
> 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:
> 
> ```auto
> --max-old-space-size=2048
> 
> ```

> [@yogesh119905](#):
>
> Kibana should not cause the server or container to reach an OOM condition under the expected workload.

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.

---

<div class="post-metadata">

**Author:** ![yogesh119905](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yogesh119905/32/145298_2.png) [@yogesh119905](https://discuss.elastic.co/u/yogesh119905)\
**Post date:** [August 24, 2026, 3:47pm UTC](https://discuss.elastic.co/t/server-hangs-due-to-high-uses-cpu-and-memory-by-elasticsearch-or-kibana/389879/6 "2026-08-24T15:47:21Z")

</div>

Thank you for suggestion. I will go through this options "--max-old-space-size" and let you know.

---

<div class="post-metadata">

**Author:** ![RainTown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raintown/32/140206_2.png) [@RainTown](https://discuss.elastic.co/u/RainTown)\
**Post date:** [August 24, 2026, 6:23pm UTC](https://discuss.elastic.co/t/server-hangs-due-to-high-uses-cpu-and-memory-by-elasticsearch-or-kibana/389879/7 "2026-08-24T18:23:03Z")

</div>

> [@stephenb](#):
>
> 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.

9.5.2 is already released, ca: 4 days ago - see [here](https://www.elastic.co/blog/elastic-stack-9-5-2-released)

---

<div class="post-metadata">

**Author:** ![yogesh119905](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yogesh119905/32/145298_2.png) [@yogesh119905](https://discuss.elastic.co/u/yogesh119905)\
**Post date:** [August 25, 2026, 4:02am UTC](https://discuss.elastic.co/t/server-hangs-due-to-high-uses-cpu-and-memory-by-elasticsearch-or-kibana/389879/8 "2026-08-25T04:02:57Z")

</div>

Thank you
