Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Solve infinite site loading (increase max_children value)
This guide explains how to increase the value max_children
on Cloud Server in order to increase the number of simultaneous PHP processes that can be used by your site. This will be very useful in solving problems of infinite loading of pages of your site.
Preamble
- By default on any hosting, the limit of
max_children
is set at 20.- Although it is possible to increase this value from the Infomaniak Manager, the limit of
max_children
is automatically adjusted according to the configuration of your Cloud Server. - To increase this limit on shared hosting, migrate to Cloud Server.
- Although it is possible to increase this value from the Infomaniak Manager, the limit of
- To understand how to calculate the
max_children
need, be aware of the this Article on this subject.
Increase max_children value
Prerequisites
- Ensure that you have the necessary resources on the Cloud server.
- Ensure that all cloud server resources are not used; if they are found to be fully used, increase the value
max_children
will have no effect (Edit Cloud Server Resources). - Control the monitoring of your server's resources, in case your server resources are reached, it will be necessary to check the optimization of processes and your site before considering increasing the value
max_children
. - View PHP error reports from folder
/ik-logs
(master process php logs - file name: php-fpm.log) to check if the limit "max_children
"was overtaken... example of error:[05-Jul-2024 09:08:58] WARNING: [pool www.infomaniak.ch] server reached max_children setting (20), consider raising it
To access PHP / Apache settings management of the site whose value must be increased max_children
on Cloud Server, read about this other guide.
In particular, you can...
- ... choose a new value of
max_children
:
Do not forget to save the changes at the bottom of the page.
Server-based limitations
Limit of max_children
based on Cloud Server resources:
Cloud Server Configuration | max_children |
---|---|
2 CPU / 6 GB RAM | 20 |
4 CPU / 12 GB RAM | 40 |
6 CPU / 18 GB RAM | 60 |
8 CPU / 24 GB RAM | 80 |
12 CPU / 36 GB RAM | 120 |
16 CPU / 48 GB RAM | 160 |
24 CPU / 72 GB RAM | 240 |
32 CPU / 96 or 128 GB RAM | 320 |
Link to this FAQ: