I have the following problem: when executing very simple PHP scripts, e.g. this one:
<?php
echo "1";
sleep(10);
echo "2";
?>
and open it in multiple tabs simultaneously, the first tab finishes in 10 seconds, however the seconds waits 20 seconds instead of 10, so I'm guessing the requests are "queued" somehow. Any ideas how to make them execute in parallel?
Configuration is as follows: LAMP stack, Ubuntu 10.10 64bit; Apache/2.2.14 (Unix) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
I have added
KeepAlive On
MaxKeepAliveRequests 0
MaxClients 512
MaxRequestsPerChild 100000
to httpd.conf, but besides that, it's the default httpd.conf that comes with lampp