# 最近几次更新中的内存缓慢增长问题

**URL:** <https://meta.discourse.org/t/memory-creep-in-last-couple-of-updates/117746>\
**Category:** Self-hosting\
**Tags:** hosting\
**Created:** [2019 年5 月 14 日 22:51 UTC](https://meta.discourse.org/t/memory-creep-in-last-couple-of-updates/117746 "2019-05-14T22:51:34Z")\
**Posts on this page:** 1\
**Showing post:** 28

<div class="post-metadata">

作者： ![RBoy](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@RBoy](https://meta.discourse.org/u/RBoy)\
发布日期： [2019 年5 月 20 日 14:21 UTC](https://meta.discourse.org/t/memory-creep-in-last-couple-of-updates/117746/28 "2019-05-20T14:21:03Z")

</div>

Just an update here, after reducing the number of unicorn workers from 8 to 5 as suggested the memory utilization has now stabilized at 57% and this is the output of `ps aux --sort -%mem`

```plaintext
PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
8555 0.6 8.4 1114316 341412 ? SNl May17 24:03 sidekiq 5.2.7 
8595 0.4 8.3 958024 334536 ? Sl May17 16:10 unicorn worker
8614 0.4 8.1 950856 329196 ? Sl May17 16:01 unicorn worker
8604 0.4 8.1 955980 328432 ? Sl May17 15:56 unicorn worker
8586 0.4 8.0 958544 323008 ? Sl May17 15:58 unicorn worker
8577 0.4 7.9 1072200 321624 ? Sl May17 16:05 unicorn worker
8446 0.1 4.9 481532 197740 ? Sl May17 6:03 unicorn master

```

@sam a follow up clarification on the impact of reducing the number of unicorn workers. I was reading on the forum that each worker supports upto 5 jobs, so with 5 workers that’s 25 jobs. I read somewhere else that each worker is good for about 400 connections. I’m not really clear on what this means for system scalability, I suspect it’ll be fine but it would nice if you could outline what the unicorn workers are used for and how many concurrent users (rough ballpark) could the system support with 5 workers. Thanks in advance.

---

_[View the full topic](https://meta.discourse.org/t/memory-creep-in-last-couple-of-updates/117746)._
