On 06/20/2011 02:38 AM, Zaccone, Warren wrote:
You're requesting a single URL 300 times concurrently. This means that apache has to dedicate 300 threads at once to this purpose. If you're not running worker, and your minspare is lower than 250 or so, it's going to take MINUTES to even get to number 300. As documented, when many new (prefork) threads are being requested at once, apache will only spawn one per second, to protect itself from attacks and runaway processes.
And the request does nothing for 20 seconds before returning. What exactly are you testing here ?
As documented, Timeout determines the maximum number of seconds that a single request may take.
Yes, Timeout works on the HTTP level, so everything sent over HTTP is affected by it. This means everything.
Then that apachebench run you show above is bloody stupid.
You can't even SERVE 300 concurrent requests.
If you run PHP, this kills apache. Eventually.
You have no idea what you are doing. -- J. |