don't use unicorn worker killer if PhusionPassenger is defined
This commit is contained in:
parent
0e4a8e231c
commit
756258ab1d
1 changed files with 6 additions and 4 deletions
10
config.ru
10
config.ru
|
@ -1,10 +1,12 @@
|
|||
# This file is used by Rack-based servers to start the application.
|
||||
|
||||
# Unicorn self-process killer
|
||||
require 'unicorn/worker_killer'
|
||||
unless defined?(PhusionPassenger)
|
||||
# Unicorn self-process killer
|
||||
require 'unicorn/worker_killer'
|
||||
|
||||
# # Max memory size (RSS) per worker
|
||||
use Unicorn::WorkerKiller::Oom, (200 * (1 << 20)), (250 * (1 << 20))
|
||||
# Max memory size (RSS) per worker
|
||||
use Unicorn::WorkerKiller::Oom, (200 * (1 << 20)), (250 * (1 << 20))
|
||||
end
|
||||
|
||||
require ::File.expand_path('../config/environment', __FILE__)
|
||||
|
||||
|
|
Loading…
Reference in a new issue