php-fpm config :
pm = dynamic
pm.max_children = 50
pm.start_servers = 20
pm.min_spare_servers = 10
and this is nginx config:
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
But When I send 50 requests at the same time, it is executed one by one.