Bobcares

Apache vs. PHP-FPM Bottleneck with Child Processes

by | Mar 18, 2022

Apache vs PHP FPM Bottleneck with Child Processes is easily dealt with Bobcares by your side. 

At Bobcares, we offer solutions for every query, big and small, as a part of our Server Management Services.

Let’s look at how our Support Team is ready to help customers deal with Apache vs PHP FPM bottleneck with child processes.

Apache vs. PHP-FPM Bottleneck with Child Processes

Apache servers that rely on the prefork MPM with a fewer number of instances than the maximum number of PHP-FPM child processes tend to run into performance issues. Our Support Techs are here today to help resolve this particular issue.

Apache vs. PHP-FPM Bottleneck with Child Processes

In fact recently, one of our customers ran into this issue. Their PHP-FPM server allows up to 20 PHP-FPM child processes while the Apache server permits five server instances as seen below.

PHP-FPM server configuration file:

_is_present: 1
pm_max_children: 20
pm_max_requests: 20

Apache server’s configuration file:

StartServers: 5
<IfModule prefork.c>
MinSpareServers: 10
MaxSpareServers: 10
</IfModule>

If the Apache server gets 20 requests, it passes on 10 requests to the available PHP-FPM child processes. After processing, the Apache server passes on the remaining ten requests to PHP-FPM. Unfortunately, this leads to severe performance issues.

Our Support Techs came up with a solution that includes Apaches having enough server instances in order to handle the maximum PHP-FPM child processes as seen below:

  1. First, open the WHM interface and navigate to Global Configuration under Service Configuration in the Home section.
  2. Here, we will see the following parameters:
    • Minimum Spare Servers
    • Maximum Spare Servers
    • Max Request Workers
  3. Next, we have to change the parameter values in the previous step to a value higher or equal to the pm_max_children value in the PHP-FPM server’s configuration file.

After this resolution, we will not face any server performance issues due to Apache vs. PHP-FPM bottleneck.

[Looking for a solution to another query? We are just a click away.]

Conclusion

To conclude, our skilled Support Engineers at Bobcares demonstrated how to deal with Apache vs PHP FPM bottleneck with child processes.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.