Ispmanager Performance tuning Apache2 + PHP-FPM

0
4
ispmanager+certificate_ERROR
ispmanager+certificate_ERROR

My server has 16GB RAM and 4 CPUs 2,4GHz. My avarage apache process has 5MB, an average PHP process takes 55MB.

/etc/apache2/mods-available/mpm_prefork.conf

<IfModule mpm_event_module>
ServerLimit 2800
StartServers 4
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxRequestWorkers 2800
MaxConnectionsPerChild 1000
</IfModule>

 

 

/etc/php/7.3/fpm/pool.d/www-data.conf

[www-data]
pm = dynamic
pm.max_children = 256
pm.start_servers = 20
pm.min_spare_servers = 10
pm.max_spare_servers = 20
pm.max_requests = 1000
php_value[error_reporting] = E_ALL & ~E_NOTICE & ~E_STRICT
php_value[display_errors] = stderr
php_value[log_errors] = On
php_admin_value[mbstring.func_overload] = 0
listen = /var/run/php-fpm.www-data.sock
listen.mode = 0660
listen.owner = www-data
listen.group = www-data
user = www-data
group = www-data

 

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here