The --num-procs parameter does not seem to work. To debug the problem I added
STDERR.puts "TEST: #{worker_list.length} #{@num_processors}"
on line 279 of /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb, and
to my surprise it looks like the parameter is ignored. If I run it
$ mongrel_rails start -a 127.0.0.1 -p 8999 --num-procs 1 &
[1] 18617
** Starting Mongrel listening at 127.0.0.1:8999
** Starting Rails with development environment...
config/boot.rb:28:Warning: require_gem is obsolete. Use gem instead.
** Rails loaded.
** Loading any Rails specific GemPlugins?
** Signals ready. TERM => stop. USR2 => restart. INT => stop (no restart).
** Rails signals registered. HUP => reload (without restart). It might not
work well.
** Mongrel 1.1.3 available at 127.0.0.1:8999
** Use CTRL-C to stop.
and then:
$ w3m -dump http://localhost:8999/test >/dev/null
TEST: 0 950
$
So it looks like @num_processors is still at the default value of 950, and not 1 as I told it on the command line.