Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Resolve infinite site loading (increase the max_children value)
This guide explains how to increase the max_children
value on Serveur Cloud to increase the number of simultaneous PHP processes that can be used by your site. This will be very useful for resolving infinite page loading issues on your site.
Preamble
- By default, the limit for
max_children
is set to 20 for all hosting.- Although it is possible to increase this value from the Infomaniak Manager, the limit for
max_children
is automatically adjusted based on 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 for
- To understand how to calculate the
max_children
needed as accurately as possible, refer to this article on the subject.
Increase the max_children value
Prerequisites
- Ensure that you have the necessary resources on the Cloud Server.
- Ensure that all resources of the Cloud Server are not used; if it turns out that they are fully used, increasing the value of
max_children
will have no effect (Modify the resources of the Cloud Server). - Monitor your server's resource usage, if your server's resources are maxed out, it will be necessary to check the optimization of your processes and site before considering increasing the
max_children
value. - Check the PHP error reports from the
/ik-logs
folder (master process php logs - file name: php-fpm.log) to verify if the "max_children
" limit has been exceeded... 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 the management of PHP / Apache parameters for the site for which you need to increase the max_children
value on Serveur Cloud, refer to this other guide.
You will be able to…
- … choose a new value for
max_children
:
Do not forget to save the changes at the bottom of the page.
Limits depending on the server
Limit of max_children
based on the resources of the Serveur Cloud:
Cloud Server Configuration | max_children |
---|---|
2 CPU / 6 GB RAM | 20 |
4 CPU / 12 GB RAM | 40 |
6 CPU / 18 GB RAM | sixty |
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: