Why does a simple Thin server stop responding at 16500 requests when benchmarking? [duplicate]
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: 'ab' program freezes after lots of requests, why? Here's a simple test server: require 'rubygems' require 'rack' require 'thin' class HelloWorld def call(env) [200, {"Content-Type" => "text/plain"}, "OK"] end end Rack::Handler::Thin.run HelloWorld.new, :Port => 9294 #I've tried with these added too, 'rack.multithread' => true, 'rack.multiprocess' => true Here's a test run: $ ab -n 20000 http://0.0.0.0:9294/sdf