Skip to content

Instantly share code, notes, and snippets.

@kzk
Created July 2, 2012 01:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kzk/3030339 to your computer and use it in GitHub Desktop.
Save kzk/3030339 to your computer and use it in GitHub Desktop.
# Unicorn self-process killer
require ::File.expand_path('../lib/unicorn/unicorn_killer', __FILE__)
use UnicornKiller::MaxRequests, 10240 + Random.rand(10240)
use UnicornKiller::Oom, 96 * 1024 + Random.rand(32) * 1024
# Out-Of-Band GC
require 'unicorn/oob_gc'
use Unicorn::OobGC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment