Knowledge base

1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!

Resolve an infinite site loading (increase the max_children value)

This guide explains how to increase the max_children value on Cloud Server 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 on all hosting, the max_children limit is set to 20.
    • Although it is possible to increase this value from the Infomaniak Manager, the max_children limit is automatically adjusted based on the configuration of your Cloud Server.
    • To increase this limit on shared hosting, migrate to Cloud Server.
  • To understand how to accurately calculate the necessary max_children, 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 being used; if it turns out that they are fully used, increasing the max_children value will have no effect (Modify the resources of the Cloud Server).
  • Monitor the resources of your server, in case the resources of your server are reached, it will be necessary to check the optimization of the processes and your site before considering increasing the value max_children.
  • Consult 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 of the site for which you need to increase the max_children value on Cloud Server, refer to this other guide.

You will be able to...

  • … choose a new max_children value:

Do not forget to save the changes at the bottom of the page.

 

Limits depending on the server

Limit of max_children depending on the resources of the Cloud Server:

Cloud Server Configurationmax_children
2 CPU / 6 Go RAM20
4 CPU / 12 Go RAM40
6 CPU / 18 GB RAM60
8 CPU / 24 GB RAM80
12 CPU / 36 GB RAM120
16 CPU / 48 GB RAM160
24 CPU / 72 GB RAM240
32 CPU / 96 or 128 GB RAM320

Has this FAQ been helpful?