# Sidekiq is consuming too much memory (using: 522.12M)..., restarting

**URL:** https://meta.discourse.org/t/sidekiq-is-consuming-too-much-memory-using-522-12m-restarting/385130
**Category:** Support
**Tags:** sidekiq
**Created:** [October 9, 2025, 1:03pm UTC](https://meta.discourse.org/t/sidekiq-is-consuming-too-much-memory-using-522-12m-restarting/385130 "2025-10-09T13:03:35Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![haydenjames](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/haydenjames/32/255678_2.png) [@haydenjames](https://meta.discourse.org/u/haydenjames)
#### Post date: [October 11, 2025, 5:50pm UTC](https://meta.discourse.org/t/sidekiq-is-consuming-too-much-memory-using-522-12m-restarting/385130/2 "2025-10-11T17:50:09Z")

</div>

Here’s what worked _for me_.

After monitoring memory usage tweaking my settings, I was able to stop the frequent **“Sidekiq is consuming too much memory…”** /log messages.

I made this change in my `/var/discourse/containers/app.yml`:

```yaml
  UNICORN_WORKERS: 4
  UNICORN_SIDEKIQ_MAX_RSS: 700

```

Originally, I had `UNICORN_WORKERS` set to **8** , [which was too aggressive](https://meta.discourse.org/t/how-much-ram-is-needed-to-host-discourse-along-with-other-services/170751) and left very [little headroom for Sidekiq](https://meta.discourse.org/t/sidekiq-is-consuming-too-much-memory/280933), PostgreSQL, Redis, and the OS.

Dropping to 4 workers freed a significant amount of memory.

Then I raised the Sidekiq RSS limit from the default (~500 MB) to **700 MB** , which allows Sidekiq a little more breathing room before it’s automatically restarted.

So far Sidekiq has stabilized, and memory usage now sits in a much safer zone, with just over 1 GB moved from **used** memory to [**cached and available**](https://linuxblog.io/free-vs-available-memory-in-linux/) memory.

Leaving this here if it proves helpful or as a hint of what to look at for anyone else with similar issues. Will be interesting to see if this holds and is more stable after a week of uptime, if it does, I will mark solved.

---

_[View the full topic](https://meta.discourse.org/t/sidekiq-is-consuming-too-much-memory-using-522-12m-restarting/385130)._
