# CPU-gebruik neemt gestaag toe

**URL:** https://meta.discourse.org/t/cpu-usage-increases-steadily/356007
**Category:** Support
**Created:** [6 maart 2025 om 05:49 UTC](https://meta.discourse.org/t/cpu-usage-increases-steadily/356007 "2025-03-06T05:49:41Z")
**Posts on this page:** 1
**Showing post:** 16

<div class="post-metadata">

### Author: ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)
#### Post date: [8 maart 2025 om 06:01 UTC](https://meta.discourse.org/t/cpu-usage-increases-steadily/356007/16 "2025-03-08T06:01:49Z")

</div>

I wrote here about what I learned:

> [@Analyze CPU Time Spent in Background Jobs (Sidekiq)](https://meta.discourse.org/t/analyze-time-spent-in-background-jobs-sidekiq/356377):
>
> You can enable Sidekiq logging to collect measurements about time spent in each job via ENV["DISCOURSE\_LOG\_SIDEKIQ"]. The job machinery will write measurements to log/sidekiq.log as [lines of JSON](https://jsonlines.org/), which can easily be summarized via [jq](https://jqlang.org/). To get the total and average time spent in jobs taking more than 5% of the total time: sudo apt update && apt install jq -y jq -s ' group\_by(.job\_name) | map({ job\_name: .[0].job\_name, count: length, total\_duration: (map(.duration) | add…

---

_[View the full topic](https://meta.discourse.org/t/cpu-usage-increases-steadily/356007)._
