为什么有这么多sidekiq进程?
Why is there so many sidekiq process?
我 运行 在我的生产服务器上 htop 以查看是什么占用了我的 RAM。很多sidekiq进程都是运行,这正常吗?
您似乎已将其配置为拥有 25 个工人。
By default, one sidekiq process creates 25 threads.
If that's crushing your machine with I/O, you can adjust it down:
sidekiq -c 10
https://github.com/mperham/sidekiq/wiki/Advanced-Options
如果您没有使用 JRuby,那么很可能这些都是消耗内存的独立进程。
按 Shift-H。 htop 默认将单个线程显示为进程。只有一个实际的 sidekiq 进程。
我 运行 在我的生产服务器上 htop 以查看是什么占用了我的 RAM。很多sidekiq进程都是运行,这正常吗?
您似乎已将其配置为拥有 25 个工人。
By default, one sidekiq process creates 25 threads.
If that's crushing your machine with I/O, you can adjust it down:
sidekiq -c 10
https://github.com/mperham/sidekiq/wiki/Advanced-Options
如果您没有使用 JRuby,那么很可能这些都是消耗内存的独立进程。
按 Shift-H。 htop 默认将单个线程显示为进程。只有一个实际的 sidekiq 进程。