From 51fb5dcc6caa07e30975b5858aa07c2fd7087ab5 Mon Sep 17 00:00:00 2001 From: phil Date: Tue, 8 Dec 2020 10:30:29 +0000 Subject: [PATCH] Performance-Einstellungen --- templates/php_fpm_pool.j2 | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/templates/php_fpm_pool.j2 b/templates/php_fpm_pool.j2 index 309f940..f81e29e 100644 --- a/templates/php_fpm_pool.j2 +++ b/templates/php_fpm_pool.j2 @@ -10,11 +10,11 @@ listen.mode = 0660 ;listen.acl_users = ;listen.acl_groups = listen.allowed_clients = 127.0.0.1 -pm = ondemand -pm.max_children = 5 -pm.start_servers = 2 -;pm.min_spare_servers = 2 -;pm.max_spare_servers = 5 +pm = dynamic +pm.max_children = 60 +pm.start_servers = 6 +pm.min_spare_servers = 3 +pm.max_spare_servers = 9 pm.process_idle_timeout = 10s; pm.max_requests = 100 ;pm.status_path = /status @@ -44,5 +44,11 @@ env[TEMP] = /tmp php_admin_value[memory_limit] = {{ nextcloud_php_memory_limit }} php_admin_value[upload_max_filesize] = {{ nextcloud_php_upload_limit }} php_admin_value[post_max_size] = {{ nextcloud_php_upload_limit }} +php_admin_value[opcache.enable] = 1 +php_admin_value[opcache.interned_strings_buffer] = 8 +php_admin_value[opcache.max_accelerated_files] = 10000 +php_admin_value[opcache.memory_consumption] = 128 +php_admin_value[opcache.save_comments] = 1 +php_admin_value[opcache.revalidate_freq] = 1 php_admin_value[open_basedir] = {{ nextcloud_install_path }}:/tmp:/dev/urandom:/proc/meminfo:/var/log ;php_admin_value[disable_functions] = mail,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_exec,passthru,system,proc_get_status,proc_close,proc_nice,proc_terminate,proc_open,curl_ini,parse_ini_file,show_source,dl,symlink,system_exec,exec,shell_exec,phpinfo