News for hackers. Stuff that matters.
Re:Adding Concurrency to Rails Apps with Unicorn by swampthing on Wednesday February 27, 2013 @02:23AM (#5291120)
One of the comments on the Heroku article mentions this gem, which does just that:

https://github.com/kzk/unicorn-worker-killer

Re:Adding Concurrency to Rails Apps with Unicorn by kawsper on Wednesday February 27, 2013 @04:31AM (#5291472)
Regarding memory, I think you can do something like this in your Unicorn config:

after_fork do |server, worker| size_in_bytes = 60010241024 # megabytes Process.setrlimit(Process::RLIMIT_AS, size_in_bytes)