there used to be a CentOS+LNMP host with two or three WordPress websites. Recently, due to the increase in the number of visitors, the page was slightly stuttered (mainly for community Q & A business, not considering static for the time being)
so the memory was upgraded from 2-core 4G to 2-core 8G
. The original php-fpm.conf configuration is:
[global]
pid = / usr/local/php/var/run/php-fpm.pid
error_log = / usr/local/php/var/log/php-fpm.log
log_level = notice
[www]
listen = / tmp/php-cgi.sock
listen.backlog =-1
listen.allowed_clients = 127.0.0.1
listen.owner = www
listen.group = www
listen.mode = 0666
user = www
group = www
pm = dynamic
pm.max_children = 30
pm.start_servers = 10
pm.min_spare_servers = 10
pm.max_spare_servers = 30 < br
php_admin_ value [error _ log] = / usr/local/php/var/log/php_errors.log
php_admin_ evaluation [log _ errors] = on
I would like to ask if this setting is reasonable? What parameters need to be adjusted after upgrading memory?
in addition, it is not limited to php-fpm, what other configuration files are also recommended to adjust?
Please give me your advice and thank you in advance!