Solved php-fpm children

marcus123

Member

Reaction score: 3
Messages: 25

I have a web server running on FreeBSD 11, and Nginx with php-fpm. In php-fpm.d/www.conf, the pm.max_children is 5 as default.

I find that if there are too many requests that use up all the children, the web server will be no response. I understand that.

I am curious to know whether the web server is really stopped or handling the request when this is happened?

I know adding more children related to Ram and the process size, is there any restriction on FreeBSD for the max. number of children to be added?

Thanks.
 
Last edited:
OP
OP
marcus123

marcus123

Member

Reaction score: 3
Messages: 25

Finally, I have solved it, I find that all php-fpm children keep waiting because of the Disk I/O problem.

And I think the web server will serve again after any children has finished her job.

And I think there are no restriction on FreeBSD for the max. number of php-fpm children, it really depends on the Ram the server has and the process size.
 
Top