Setting Up Nginx + PHP-FPM to handle 1000 Connections !simultaneously!
May 15, 2014 01:21PM
Hello,

I'm trying to setting up nginx + php-fpm to handle many connections simultaneously but i can't.
My Current Config of nginx.conf is the following

user www-data;
worker_processes 8;
worker_rlimit_nofile 150000;
pid /run/nginx.pid;
events {
worker_connections 150000;
multi_accept on;
use epoll;
}


http {
.......
}


My php pool config is the following:

pm = ondemand
pm.max_children = 4000


I tried to set pm as static/dynamic but nothing of them worked properly. Even if i setted that to: ondemand and max_children 4000 always nginx crashes at ~400 Open connections.

I always get something like 400-430 Connections and it can't handle more. I get Bad Gateway error after that and the connections are being closed.

Thank you
Hope you understand
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 189
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready