From 1e827944ab7bce2e598941cd505eaa43ab5b14e2 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 14 Nov 2023 01:41:51 +0800 Subject: [PATCH] update --- plugins/php-apt/conf/www.conf | 1 + plugins/php-yum/conf/www.conf | 1 + plugins/php/conf/www.conf | 1 + 3 files changed, 3 insertions(+) diff --git a/plugins/php-apt/conf/www.conf b/plugins/php-apt/conf/www.conf index 3b3571c6e..afe49417f 100644 --- a/plugins/php-apt/conf/www.conf +++ b/plugins/php-apt/conf/www.conf @@ -12,6 +12,7 @@ pm.start_servers = 5 pm.min_spare_servers = 5 pm.max_spare_servers = 35 pm.status_path = /phpfpm_status_apt{$PHP_VERSION} +pm.max_requests = 1000 request_terminate_timeout = 30 request_slowlog_timeout = 10 slowlog = /var/log/fpm-php{$PHP_VERSION}.www.slow.log diff --git a/plugins/php-yum/conf/www.conf b/plugins/php-yum/conf/www.conf index 00df478d1..a8149e3db 100644 --- a/plugins/php-yum/conf/www.conf +++ b/plugins/php-yum/conf/www.conf @@ -13,6 +13,7 @@ pm.start_servers = 5 pm.min_spare_servers = 5 pm.max_spare_servers = 35 pm.status_path = /phpfpm_status_yum{$PHP_VERSION} +pm.max_requests = 1000 request_terminate_timeout = 30 request_slowlog_timeout = 10 slowlog = /var/opt/remi/php{$PHP_VERSION}/log/php-fpm/www-slow.log diff --git a/plugins/php/conf/www.conf b/plugins/php/conf/www.conf index 5ee8a60e3..1512ff3e6 100644 --- a/plugins/php/conf/www.conf +++ b/plugins/php/conf/www.conf @@ -13,6 +13,7 @@ pm.start_servers = 5 pm.min_spare_servers = 5 pm.max_spare_servers = 35 pm.status_path = /phpfpm_status_{$PHP_VERSION} +pm.max_requests = 1000 request_terminate_timeout = 30 request_slowlog_timeout = 10 slowlog = {$SERVER_PATH}/php/{$PHP_VERSION}/var/log/www-slow.log \ No newline at end of file