# Sidekiq צורכת יותר מדי זיכרון אפילו כאשר הוגדר UNICORN\_SIDEKIQ\_MAX\_RSS

**URL:** https://meta.discourse.org/t/sidekiq-is-consuming-too-much-memory-even-with-unicorn-sidekiq-max-rss-adjusted/284010
**Category:** Self-hosting
**Tags:** server-resources
**Created:** [31 באוקטובר,‏ 2023,‏ 1:50pm UTC](https://meta.discourse.org/t/sidekiq-is-consuming-too-much-memory-even-with-unicorn-sidekiq-max-rss-adjusted/284010 "2023-10-31T13:50:48Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [31 באוקטובר,‏ 2023,‏ 1:50pm UTC](https://meta.discourse.org/t/sidekiq-is-consuming-too-much-memory-even-with-unicorn-sidekiq-max-rss-adjusted/284010/1 "2023-10-31T13:50:48Z")

</div>

Continuing the discussion from [Sidekiq is consuming too much memory, restarting](https://meta.discourse.org/t/sidekiq-is-consuming-too-much-memory-restarting/48395/40):

> [@Sidekiq is consuming too much memory, restarting](https://meta.discourse.org/t/sidekiq-is-consuming-too-much-memory-restarting/48395/40):
>
> Except for that, yes, on mega busy multisites you need to adjust `UNICORN_SIDEKIQ_MAX_RSS`

I’ve adjusted the setting and see this in the container:

```plaintext
root@ip-10-4-2-52:/# set|grep SIDE
UNICORN_SIDEKIQS=1
UNICORN_SIDEKIQ_MAX_RSS=1000

```

But I see this in the logs:

```plaintext
Sidekiq is consuming too much memory (using: 535.10M) for 'site', restarting

```

It would seem like 535.10M \< 1000, right? I feel like I must have a typo or something else really silly.

This is a very busy site with 600-800K pageviews/day with 7 (largely idle) web containers running in ECS.

There are 4 CPUs in the task, should I increase `UNICORN_SIDEKIQS`?

If I run `[ENV["UNICORN_SIDEKIQ_MAX_RSS"].to_i, 500].max.megabytes` in rails, I get `1048576000`, so it seems like Rails should have access to the ENV, but maybe running rails myself is somehow different from the one that gets cranked up on boot?

---

_[View the full topic](https://meta.discourse.org/t/sidekiq-is-consuming-too-much-memory-even-with-unicorn-sidekiq-max-rss-adjusted/284010)._
