From 4beeb52b1c52ea4486dea13cebe2a8438a9f2139 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 15 Jun 2011 01:10:07 +0000 Subject: memory reductions in worker process There's absolutely no need to keep the OptionParser around in worker processes. --- bin/unicorn | 1 + bin/unicorn_rails | 1 + 2 files changed, 2 insertions(+) (limited to 'bin') diff --git a/bin/unicorn b/bin/unicorn index f476a33..9962b58 100755 --- a/bin/unicorn +++ b/bin/unicorn @@ -106,6 +106,7 @@ op = OptionParser.new("", 24, ' ') do |opts| end app = Unicorn.builder(ARGV[0] || 'config.ru', op) +op = nil if $DEBUG require 'pp' diff --git a/bin/unicorn_rails b/bin/unicorn_rails index 860a9ce..4bd599f 100755 --- a/bin/unicorn_rails +++ b/bin/unicorn_rails @@ -186,6 +186,7 @@ def rails_builder(ru, op, daemonize) end app = rails_builder(ARGV[0], op, rackup_opts[:daemonize]) +op = nil if $DEBUG require 'pp' -- cgit v1.2.3-24-ge0c7