Run the following command on the log corresponding to the version of PHP your domain is using.Run the following command to find the FPM logs:įind /opt/cpanel/ea-php*/root/usr/var/log/php-fpm/ -type f -name error.log.Access your server as the root user via Terminal or SSH.Click the blue " Update" button at the bottom of the pageĬhecking the PHP-FPM Logs for Max Children Limit Hits. Update the " Max Children" value to your desired value.In the table, click on the " PHP-FPM Settings" button at the far right of your domain's row.Click on the " User Domain Settings" tab.Navigate to: " Home / Software / MultiPHP Manager". While doing this, you should pay close attention to the server's overall CPU, memory, and IO resource usage. The most straightforward approach to adjusting max_children is to increase the value by increments of 5 when the domain hits the limit. Without the limit, traffic from a single domain could crash the entire server in certain circumstances. When the limit is hit, only a single domain will become unavailable. The purpose of the max_children directive is to provide a way to limit the number of resources used by PHP-FPM so that it cannot overwhelm the server. A max_children setting of 5 means only five processes can spawn for that particular domain. In the cPanel context, max_children is applied on a per-domain basis. The max_children directive defines the maximum number of PHP-FPM processes allowed to spawn. How to switch from PHP-FPM to the LSAPI handler If you would prefer not to tune PHP-FPM's Max Children limit, you may consider switching to the LSAPI handler: This resource provides information about tuning the Max Children limit for PHP FPM.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |