# High CPU use of Netdata

**URL:** <https://community.netdata.cloud/t/high-cpu-use-of-netdata/5087>\
**Category:** Help\
**Created:** [January 26, 2024, 12:09pm UTC](https://community.netdata.cloud/t/high-cpu-use-of-netdata/5087 "2024-01-26T12:09:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin\_Neumann](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/martin_neumann/32/2931_2.png) [@Martin\_Neumann](https://community.netdata.cloud/u/Martin_Neumann)\
**Post date:** [January 26, 2024, 12:09pm UTC](https://community.netdata.cloud/t/high-cpu-use-of-netdata/5087/1 "2024-01-26T12:09:43Z")

</div>

**Suggested template:**

## Problem/Question

I am running 2 docker swarms that are both monitored by netdata. I decided to edit the config files in order to reduce the memory footprint. It worked fine on all worker nodes, but the two docker manager nodes showed close to 100% CPU use after the restart. I edited the docker stacks to reduce cpu allowance to 30%, and they are both staying there using 30% of CPU for more than a day already. I tried to delete the netdata config file to see if it was a config issue, but the problem remains. Those 2 nodes are manager nodes in the docker swarm, but in relation to netdata they are all independent nodes. Here a a screenshot:

 ![netdata](https://canada1.discourse-cdn.com/flex029/uploads/netdata2/original/2X/a/a17b8435a2ba620a0c1876c430a5184777be14ac.jpeg)

## Environment/Browser/Agent’s version etc

Netdata agent: 1.44.1  
in Docker container

## What I expected to happen

---

<div class="post-metadata">

**Author:** ![Martin\_Neumann](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/martin_neumann/32/2931_2.png) [@Martin\_Neumann](https://community.netdata.cloud/u/Martin_Neumann)\
**Post date:** [January 26, 2024, 12:12pm UTC](https://community.netdata.cloud/t/high-cpu-use-of-netdata/5087/2 "2024-01-26T12:12:32Z")

</div>

Just for appreciation, here a htop output:

 ![netdata htop](https://canada1.discourse-cdn.com/flex029/uploads/netdata2/original/2X/5/504738cf468e6d23a0242d9ffc2aad6a316e0b7b.jpeg)

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [January 26, 2024, 1:06pm UTC](https://community.netdata.cloud/t/high-cpu-use-of-netdata/5087/3 "2024-01-26T13:06:23Z")

</div>

Hey, @Martin_Neumann. The `htop` output not useful without thread names. And likely duplicate of [netdata eating a lot of CPU](https://community.netdata.cloud/t/netdata-eating-a-lot-of-cpu/5066)

---

<div class="post-metadata">

**Author:** ![Martin\_Neumann](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/martin_neumann/32/2931_2.png) [@Martin\_Neumann](https://community.netdata.cloud/u/Martin_Neumann)\
**Post date:** [January 26, 2024, 1:54pm UTC](https://community.netdata.cloud/t/high-cpu-use-of-netdata/5087/4 "2024-01-26T13:54:24Z")

</div>

alright, what do I need to do to show that?

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [January 26, 2024, 2:55pm UTC](https://community.netdata.cloud/t/high-cpu-use-of-netdata/5087/5 "2024-01-26T14:55:28Z")

</div>

Check this topic [netdata eating a lot of CPU - #2 by ilyam8](https://community.netdata.cloud/t/netdata-eating-a-lot-of-cpu/5066/2)

---

<div class="post-metadata">

**Author:** ![Martin\_Neumann](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/martin_neumann/32/2931_2.png) [@Martin\_Neumann](https://community.netdata.cloud/u/Martin_Neumann)\
**Post date:** [January 26, 2024, 4:46pm UTC](https://community.netdata.cloud/t/high-cpu-use-of-netdata/5087/6 "2024-01-26T16:46:39Z")

</div>

Yes, deleting the content in the cache folder did resolve the problem for now, but I also lost all historical data. If you give me instructions how to check for the thread name I could check on the other instance whether the cause was the same.

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [January 28, 2024, 5:37pm UTC](https://community.netdata.cloud/t/high-cpu-use-of-netdata/5087/7 "2024-01-28T17:37:22Z")

</div>

@Martin_Neumann there is a link the that thread, click on “using htop”

> [@netdata eating a lot of CPU](https://community.netdata.cloud/t/netdata-eating-a-lot-of-cpu/5066/2):
>
> Hey, consider [using htop](https://github.com/netdata/netdata/issues/14892#issuecomment-1505296000) to find out which thread that is.

Anyway, I am pretty sure it will be “ACLKSYNC”. That is a bug, we know about it.

You can follow on GitHub:

- [issue](https://github.com/netdata/netdata/issues/16818)
- [PR](https://github.com/netdata/netdata/pull/16838) - I see it says “part 1”, it means merging it != fixing the problem.

> deleting the content in the cache folder did resolve the problem for now

The problem is in `netdata-meta.db` (SQLite ), deleting cache content resolves the problem because you delete the file. We will provide an instruction on how to resolve the issue without deleting historical data - workaround until the issue is fixed.

---

<div class="post-metadata">

**Author:** ![Martin\_Neumann](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/martin_neumann/32/2931_2.png) [@Martin\_Neumann](https://community.netdata.cloud/u/Martin_Neumann)\
**Post date:** [January 28, 2024, 11:01pm UTC](https://community.netdata.cloud/t/high-cpu-use-of-netdata/5087/8 "2024-01-28T23:01:05Z")

</div>

Alright, I could confirm now that it is ACLKSYNC. Interestingly the problem appeared only on my two manager nodes of the docker swarm. All of worker nodes were updating fine without causing the same problem.
