# High cpu load caused by storj containers

**URL:** <https://forum.storj.io/t/high-cpu-load-caused-by-storj-containers/27128>\
**Category:** troubleshooting\
**Tags:** hardware\
**Created:** [July 15, 2024, 4:28pm UTC](https://forum.storj.io/t/high-cpu-load-caused-by-storj-containers/27128 "2024-07-15T16:28:02Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![gingerbread233](https://storj.bcdn.literatehosting.com/letter_avatar/gingerbread233/32/6_449c533f586939b6e5f246632a46421f.png) [@gingerbread233](https://forum.storj.io/u/gingerbread233)\
**Post date:** [July 15, 2024, 4:28pm UTC](https://forum.storj.io/t/high-cpu-load-caused-by-storj-containers/27128/1 "2024-07-15T16:28:02Z")

</div>

Hello,

before the 4th July break my nodes ran as usual, then storj paused the test data due to the 4th of July, after they continued the tests, my node run as usual the first days, but now the cpu almost hits 100% 24/7 (real 100% not 100% i/o wait). Does anybody have the same “issue”? At my parents house my second node is running as usual. Is there something wrong with my system? Almost all demanding processes seem to be storj.

TiA

 ![1000019446](https://storj-s3.bcdn.literatehosting.net/original/3X/6/d/6dd7a26cb6d412568a2e73b1cdd450544e15c27c.jpeg)  
 ![1000019449](https://storj-s3.bcdn.literatehosting.net/original/3X/6/0/604e1e6d05020dc73868f0e323b55bdd24ae1c38.jpeg)

---

<div class="post-metadata">

**Author:** ![flo82](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/flo82/32/10747_2.png) [@flo82](https://forum.storj.io/u/flo82)\
**Post date:** [July 15, 2024, 7:38pm UTC](https://forum.storj.io/t/high-cpu-load-caused-by-storj-containers/27128/2 "2024-07-15T19:38:16Z")

</div>

I had this issues - restarted the node and everything was fine.

---

<div class="post-metadata">

**Author:** ![gingerbread233](https://storj.bcdn.literatehosting.com/letter_avatar/gingerbread233/32/6_449c533f586939b6e5f246632a46421f.png) [@gingerbread233](https://forum.storj.io/u/gingerbread233)\
**Post date:** [July 17, 2024, 5:04am UTC](https://forum.storj.io/t/high-cpu-load-caused-by-storj-containers/27128/3 "2024-07-17T05:04:46Z")

</div>

I restarted all storj containers, and the issue seem to be fixed now. Thank you.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [July 17, 2024, 7:10am UTC](https://forum.storj.io/t/high-cpu-load-caused-by-storj-containers/27128/4 "2024-07-17T07:10:05Z")

</div>

The funny thing, that it uses only the one core up to the top.  
I just saw it with `htop`. One of the nodes uses one of 8 cores to 100%. But the general load is 12% (there are three nodes).

---

<div class="post-metadata">

**Author:** ![gingerbread233](https://storj.bcdn.literatehosting.com/letter_avatar/gingerbread233/32/6_449c533f586939b6e5f246632a46421f.png) [@gingerbread233](https://forum.storj.io/u/gingerbread233)\
**Post date:** [July 17, 2024, 7:27am UTC](https://forum.storj.io/t/high-cpu-load-caused-by-storj-containers/27128/5 "2024-07-17T07:27:16Z")

</div>

Is that a Docker related thing, or is it possible to make this more efficient in future node versions?

---

<div class="post-metadata">

**Author:** ![gingerbread233](https://storj.bcdn.literatehosting.com/letter_avatar/gingerbread233/32/6_449c533f586939b6e5f246632a46421f.png) [@gingerbread233](https://forum.storj.io/u/gingerbread233)\
**Post date:** [July 17, 2024, 11:54am UTC](https://forum.storj.io/t/high-cpu-load-caused-by-storj-containers/27128/6 "2024-07-17T11:54:50Z")

</div>

Seems like high CPU usage is back after around 12 hours.

---

<div class="post-metadata">

**Author:** ![mike](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mike/32/1127_2.png) [@mike](https://forum.storj.io/u/mike)\
**Post date:** [July 17, 2024, 7:38pm UTC](https://forum.storj.io/t/high-cpu-load-caused-by-storj-containers/27128/7 "2024-07-17T19:38:17Z")

</div>

I’ve noticed similar behavior - mostly on 1.107.3.  
At the same time, those nodes had more than one BF from same satellite in the retain folder.

I think this was covered as a bug in another release?

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [July 18, 2024, 7:52am UTC](https://forum.storj.io/t/high-cpu-load-caused-by-storj-containers/27128/8 "2024-07-18T07:52:45Z")

</div>

I hope so, but you may check:

> [@Release preparation v1.108](https://forum.storj.io/t/release-preparation-v1-108/27006):
>
> New release candidate version v1.108 is deployed on [QA Satellite](https://satellite.qa.storj.io)Changelog General [406c2c3](https://github.com/storj/storj/commit/406c2c3) nodeselection: support subnet filter with any bit size (/25) [17c7163](https://github.com/storj/storj/commit/17c7163) shared/nodeidmap: add a generic NodeID map [79f3eb3](https://github.com/storj/storj/commit/79f3eb3) ci: move satellite UI tests after unit tests [8c2d8c0](https://github.com/storj/storj/commit/8c2d8c0) release v1.108.1 Multinode [28a1e52](https://github.com/storj/storj/commit/28a1e52) web/multinode: implement table sorting (#6974) Satellite [dcfc2ab](https://github.com/storj/storj/commit/dcfc2ab) web/satellite: fix no passphrase bug [09805a4](https://github.com/storj/storj/commit/09805a4) web/satellite: improve account setup dialog code [697225a](https://github.com/storj/storj/commit/697225a) satellite/satellited…

---

<div class="post-metadata">

**Author:** ![mike](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mike/32/1127_2.png) [@mike](https://forum.storj.io/u/mike)\
**Post date:** [July 18, 2024, 9:45am UTC](https://forum.storj.io/t/high-cpu-load-caused-by-storj-containers/27128/9 "2024-07-18T09:45:13Z")

</div>

It doesn’t really describe the situation where it’s somehow causing the race condition of using a full core when two are competing, but this seems to be the intended fix in 1.108:

> <https://github.com/storj/storj/commit/9e99540>
>
> Single retain operation is already heavy for storage node. At the moment it make… no sense to try do this concurrently. With concurrency flag set to 1 retain queue will process entries one by one ordering filters with CreatedBefore fields (from oldest to newest value).
> 
> Change also adds few more test cases.
> 
> https://github.com/storj/storj/issues/6946
> 
> Change-Id: I7a97794677e7e552645fe5e8d4964bc1a25ed497

I’ll update my config with `retain.concurrency: 1` - should fix it for nodes not yet on 1.108.

Thanks!

---

<div class="post-metadata">

**Author:** ![gingerbread233](https://storj.bcdn.literatehosting.com/letter_avatar/gingerbread233/32/6_449c533f586939b6e5f246632a46421f.png) [@gingerbread233](https://forum.storj.io/u/gingerbread233)\
**Post date:** [July 18, 2024, 10:38am UTC](https://forum.storj.io/t/high-cpu-load-caused-by-storj-containers/27128/10 "2024-07-18T10:38:03Z")

</div>

How can I upgrade all of my Nodes to the latest version? My flag in docker compose is":leates", but when redeploying, I’m still at 1.105. Unfortunately the link for the /25 subnet filter explaination doesn’t work (Error 404). What does that mean? Is the traffic now being shared in /25 instead of /24 subnets?

---

<div class="post-metadata">

**Author:** ![gingerbread233](https://storj.bcdn.literatehosting.com/letter_avatar/gingerbread233/32/6_449c533f586939b6e5f246632a46421f.png) [@gingerbread233](https://forum.storj.io/u/gingerbread233)\
**Post date:** [July 18, 2024, 10:39am UTC](https://forum.storj.io/t/high-cpu-load-caused-by-storj-containers/27128/11 "2024-07-18T10:39:02Z")

</div>

Did you tested it? Did it resolve the issue with the high cpu load?

---

<div class="post-metadata">

**Author:** ![mike](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mike/32/1127_2.png) [@mike](https://forum.storj.io/u/mike)\
**Post date:** [July 18, 2024, 10:40am UTC](https://forum.storj.io/t/high-cpu-load-caused-by-storj-containers/27128/12 "2024-07-18T10:40:47Z")

</div>

It works for me with `retain.concurrency: 1` set in config for nodes \< 1.108

---

<div class="post-metadata">

**Author:** ![gingerbread233](https://storj.bcdn.literatehosting.com/letter_avatar/gingerbread233/32/6_449c533f586939b6e5f246632a46421f.png) [@gingerbread233](https://forum.storj.io/u/gingerbread233)\
**Post date:** [July 18, 2024, 10:44am UTC](https://forum.storj.io/t/high-cpu-load-caused-by-storj-containers/27128/13 "2024-07-18T10:44:10Z")

</div>

Did you set this in the config file, or in the docker command? If this “issue” existed before, why it only causes problems now, and not before? The high cpu load cam out of the blue.

---

<div class="post-metadata">

**Author:** ![mike](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mike/32/1127_2.png) [@mike](https://forum.storj.io/u/mike)\
**Post date:** [July 18, 2024, 12:37pm UTC](https://forum.storj.io/t/high-cpu-load-caused-by-storj-containers/27128/14 "2024-07-18T12:37:27Z")

</div>

I set it in the config.yaml file, but I’m sure either way is just fine.

I do not know why it has not been a problem before 🙂

---

<div class="post-metadata">

**Author:** ![Mad\_Max](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mad_max/32/1127_2.png) [@Mad\_Max](https://forum.storj.io/u/Mad_Max)\
**Post date:** [July 18, 2024, 10:30pm UTC](https://forum.storj.io/t/high-cpu-load-caused-by-storj-containers/27128/15 "2024-07-18T22:30:13Z")

</div>

> [@Alexey](#):
>
> The funny thing, that it uses only the one core up to the top.  
> I just saw it with `htop`. One of the nodes uses one of 8 cores to 100%. But the general load is 12% (there are three nodes).

This happens because one of the threads of GC actually hangs (enters an infinite non-productive loop).  
And since it’s only one thread, it can only take up one core max. But do it at 100% load non-stop.

In my case, it did not even respond to requests to restart the node - all other threads shut down correctly, but there was one that did not respond to commands. /mon/ps has shown that this thread is related to the garbage collector.  
So I even had to kill the node process to restart - because I waited for more than an hour and this last thread never finished working, while it did NOT perform any disk operations, it just continued to load one CPU core at 100% non-stop.

I also have seen this situation several times on my nodes and I can confirm that it has always been associated with an attempts to process several Bloom Filters for the **same** satellite. In situations where the next one was received before the processing of the previous one was completed.

Config change to `retain.concurrency: 1` seems fixed it for me too without SW update (my larger nodes are still on v 1.105.4) .

> [@gingerbread233](#):
>
> If this “issue” existed before, why it only causes problems now, and not before? The high cpu load cam out of the blue.

The most likely answer in my answer in the previous paragraph is that it didn’t show up before, because usually the GC managed to complete it’s work before it received a new BF for the **same** satellite.  
The growth of nodes sizes (in terms of the number of stored files) and the high network load of the last two months served as a trigger for a previously unnoticed bug.

---

<div class="post-metadata">

**Author:** ![Julio](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/julio/32/1132_2.png) [@Julio](https://forum.storj.io/u/Julio)\
**Post date:** [July 19, 2024, 6:48am UTC](https://forum.storj.io/t/high-cpu-load-caused-by-storj-containers/27128/16 "2024-07-19T06:48:35Z")

</div>

Super happy fun time! … Imagine the trampling of feet in the mosh pit now 🙂 - Didn’t I just notice three bi-daily SLC Bloom filters in a row lately? Good times ahead 😕 ! Hoping the potential avalanche of TTL fall-off data doesn’t scare too many peeps, and give Alexey a heart attack from spoon feeding too many newbies.

Looks like another nice catch M\_M! Keep up the excellent analysis.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [July 19, 2024, 8:32am UTC](https://forum.storj.io/t/high-cpu-load-caused-by-storj-containers/27128/17 "2024-07-19T08:32:48Z")

</div>

By do not touch it, it will be updated eventually to the proper version. Or do you want to be an alpha-tester? If so, there are methods, but I wouldn’t teach you how to bypass the version control, sorry.

> [@gingerbread233](#):
>
> Unfortunately the link for the /25 subnet filter explaination doesn’t work (Error 404). What does that mean

I have no idea what are you talking about? Could you please elaborate, what is a third party tool you have used?

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [July 19, 2024, 8:35am UTC](https://forum.storj.io/t/high-cpu-load-caused-by-storj-containers/27128/18 "2024-07-19T08:35:51Z")

</div>

> [@Mad\_Max](#):
>
> /mon/ps has shown that this thread is related to the garbage collector.

This is interesting! Thank you!

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [July 19, 2024, 8:38am UTC](https://forum.storj.io/t/high-cpu-load-caused-by-storj-containers/27128/19 "2024-07-19T08:38:27Z")

</div>

> [@Julio](#):
>
> and give Alexey a heart attack from spoon feeding too many newbies.

No problem at all. There are always newbies, I will point them either to a documentation or the post on the forum. If we do not have any - explain it one more time.

---

<div class="post-metadata">

**Author:** ![gingerbread233](https://storj.bcdn.literatehosting.com/letter_avatar/gingerbread233/32/6_449c533f586939b6e5f246632a46421f.png) [@gingerbread233](https://forum.storj.io/u/gingerbread233)\
**Post date:** [July 19, 2024, 9:24am UTC](https://forum.storj.io/t/high-cpu-load-caused-by-storj-containers/27128/20 "2024-07-19T09:24:43Z")

</div>

> [406c2c3](https://github.com/storj/storj/commit/406c2c3) nodeselection: support subnet filter with any bit size (/25)

I wanted to know what that means, the link to github doesn’t work, I don’t know what you mean with third party tool.

> By do not touch it, it will be updated eventually to the proper version. Or do you want to be an alpha-tester? If so, there are methods, but I wouldn’t teach you how to bypass the version control, sorry.

So you mean, I should “fix it” by editing the config.yaml, and set value 5 to 1 by myself?

[Next page](https://forum.storj.io/t/high-cpu-load-caused-by-storj-containers/27128.md?page=2)
