vmware-marketplacelamp

Configure PHP-FPM processes

It is possible to configure PHP-FPM processes per application. If you have a lot of applications, this may result in excessive CPU usage.

  • You can configure your application’s PHP-FPM processes to start automatically when needed. Add this option to the /opt/bitnami/php/etc/php-fpm.d/www.conf PHP-FPM pool configuration file:

      pm=ondemand
    
  • You can also reduce the number of PHP-FPM processes per application by modifying the files below.

    • If you configured the processes to start dynamically, modify the /opt/bitnami/php/etc/common-dynamic.conf as below:

        pm=dynamic
        pm.max_children=5
        pm.start_servers=2
        pm.min_spare_servers=1
        pm.max_spare_servers=3
      
    • If you configured the processes to start on demand, modify the /opt/bitnami/php/etc/common-ondemand.conf as below:

        pm=ondemand
        pm.max_children=5
        pm.start_servers=2
        pm.min_spare_servers=1
        pm.max_spare_servers=3
      
Last modification February 9, 2023