我安装了vestacp,但是php-fpm消耗了大量的ram和cpu。如何进行php.fpm优化? 网站:https://torrentoyunindir.org/
资源消耗:https://image.ibb.co/kfiNXq/Capture.png
规格服务器(数字海洋):
1 GB RAM
1 CPU
php-fpm.conf:
[domain.com]
listen = 127.0.0.1:9002
listen.allowed_clients = 127.0.0.1
user = admin
group = admin
pm = ondemand
pm.max_children = 75
pm.process_idle_timeout = 10s
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
pm.max_requests = 500
listen.backlog = -1
pm.status_path = /status
request_terminate_timeout = 120s
rlimit_files = 131072
rlimit_core = unlimited
catch_workers_output = yes
php_admin_value[upload_tmp_dir] = /home/admin/tmp
php_admin_value[session.save_path] = /home/admin/tmp
env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /home/admin/tmp
env[TMPDIR] = /home/admin/tmp
env[TEMP] = /home/admin/tmp