Apache MaxRequestWorkers and PHP FPM Max Children
Hi,
I read the following article to try to understand Apache MaxRequestWorkers and PHP FPM Max Children:
mpm_common - Apache HTTP Server Version 2.4, MaxRequestWorkers is the max number of processes that Apache can allow. For non-thread mode(
-
Hi, cPRex If I understand correct, then: 1. A PHP FPM Child Process is also a Apache Process. 2. The Apache processes = PHP FPM Child Processes for PHP requests + other processes for non PHP requests, such as images, js, CSS, etc. 3. The total requests that Apache can handle = Total requests PHP FPM can handle + Total requests that other processes can handle. If 2 is correct, then MaxRequestWorkers must be > PHP FPM Max Children, otherwise, there will be no available processes for non PHP requests. If 3 is correct, then the total requests Apache can handle = PHP FPM Max Request * Max Children + Other Multi-thread process * Children per thread + Other Single-thread process. 0 -
That all sounds correct to me! 0 -
Thank you. 0 -
Sure thing! 0
Please sign in to leave a comment.
Comments
5 comments