# Sidekiq is consuming too much memory, restarting

**URL:** https://meta.discourse.org/t/sidekiq-is-consuming-too-much-memory-restarting/48395
**Category:** Self-hosting
**Created:** [2016 年 8 月 9 日午後 2:00 UTC](https://meta.discourse.org/t/sidekiq-is-consuming-too-much-memory-restarting/48395 "2016-08-09T14:00:59Z")
**Posts on this page:** 1
**Showing post:** 38

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2018 年 5 月 3 日午後 8:37 UTC](https://meta.discourse.org/t/sidekiq-is-consuming-too-much-memory-restarting/48395/38 "2018-05-03T20:37:38Z")

</div>

Also, if your server has enough total RAM, you can increase the memory allocation for Sidekiq.

Place this in the `env:` section of `app.yml`:

`UNICORN_SIDEKIQ_MAX_RSS: 1000`

The default maximum is, I believe, 500mb.

---

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