# Sidekiq stops after some time

**URL:** <https://meta.discourse.org/t/sidekiq-stops-after-some-time/267777>\
**Category:** Self-hosting\
**Created:** [June 9, 2023, 9:54am UTC](https://meta.discourse.org/t/sidekiq-stops-after-some-time/267777 "2023-06-09T09:54:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![trobiyo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/trobiyo/32/311872_2.png) [@trobiyo](https://meta.discourse.org/u/trobiyo)\
**Post date:** [June 9, 2023, 3:52pm UTC](https://meta.discourse.org/t/sidekiq-stops-after-some-time/267777/2 "2023-06-09T15:52:19Z")

</div>

Hi Denis,

I will focus on provide you info about how to increase RSS for Sidekiq.

For this, have a look to the `UNICORN_SIDEKIQ_MAX_RSS` environment variable (ffi: [discourse/config/unicorn.conf.rb at 89d7b1861d1625352e82e82c19f93e7272c965ef · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/89d7b1861d1625352e82e82c19f93e7272c965ef/config/unicorn.conf.rb#L134)) (e.g., `UNICORN_SIDEKIQ_MAX_RSS: 1000`) so this will allow you use allocate more memory. In any case, I recommend you decrease a bit the `UNICORN_SIDEKIQS` value to 1 or 2, unless you have several jobs been enqueued up for long.

I unknow what can be the cause of your sidekiq’s reboots though, normally it just reboots on the background after OOM (according to [discourse/config/unicorn.conf.rb at 89d7b1861d1625352e82e82c19f93e7272c965ef · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/89d7b1861d1625352e82e82c19f93e7272c965ef/config/unicorn.conf.rb#L163-L168)), but check `your-forum.com/logs` for more info, hope this helps.

Cheers,  
Ismael

---

_[View the full topic](https://meta.discourse.org/t/sidekiq-stops-after-some-time/267777)._
