Hi,<br>
<br>
I have a bunch of nginx and php-fpm worker threads. I am running a<br>
very simple test with a script doing: <? sleep(20); ?>. I notice that<br>
if I make two requests at the same time (from the same IP address), they get serialized on the<br>
php-fpm side and have a twenty second differential. Why would this<br>
happen and the two requests not get processed in parallel when there<br>
are an abundant number of threads? Here are the two requests in the<br>
slow log file and they have a twenty second difference:<br>
<br>
Sep 26 19:02:38.177091 pid 13597 (pool default)<br>
script_filename = /var/www/test1/test.php<br>
[0x00000000095b5280] sleep() /var/www/test1/test.php:2<br>
<br>
Sep 26 19:02:58.321560 pid 13609 (pool default)<br>
script_filename = /var/www/test1/test.php<br>
[0x000000000942a890] sleep() /var/www/test1/test.php:2<br>
<br>
I have 100+ nginx threads<br>
$ ps -afe | grep nginx | wc -l<br>
120<br>
<br>
and 150 php-fpm threads<br>
$ ps -afe | grep php-fpm | wc -l<br>
150<br>
<br><br>
Thanks,<br>
<font color="#888888">Ankur</font>