kzk / unicorn-worker-killer

Automatically restart Unicorn workers based on 1) max number of requests and 2) max memory

Home Page:https://rubygems.org/gems/unicorn-worker-killer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trying to understand somethign with memory_limit_min

krzkrzkrz opened this issue · comments

$ free -m
             total       used       free     shared    buffers     cached
Mem:          2003       1960         42          0          1         33
-/+ buffers/cache:       1925         78
Swap:            0          0          0

In the docs. It is recommending me to do use Unicorn::WorkerKiller::Oom, (192*(1024**2)), (256*(1024**2)) is 192 based on kb?

Which means, if I have 42mb free memory, will that trigger the worker to be killed (restarted)?

What is memory_limit_max used for?