Limit max_requests to 1000

master
Daniel Berteaud 8 years ago
parent 489aa0a7b3
commit 89b9699283
  1. 4
      root/etc/e-smith/templates/etc/php-fpm.d/www.conf/20tt-rss

@ -1,7 +1,7 @@
{ {
if ($PHP_VERSION eq '71'){ if ($PHP_VERSION eq '71'){
if ((${'tt-rss'}{status} || 'disabled') eq 'enabled'){ if ((${'tt-rss'}{status} || 'disabled') eq 'enabled'){
my $id = 'tt-rss; my $id = 'tt-rss';
$OUT .=<<_EOF; $OUT .=<<_EOF;
[php$PHP_VERSION-$id] [php$PHP_VERSION-$id]
@ -16,7 +16,7 @@ pm.max_children = 15
pm.start_servers = 3 pm.start_servers = 3
pm.min_spare_servers = 3 pm.min_spare_servers = 3
pm.max_spare_servers = 4 pm.max_spare_servers = 4
pm.max_requests = 5000 pm.max_requests = 1000
request_terminate_timeout = 30 request_terminate_timeout = 30
php_admin_value[session.save_path] = /var/lib/php/$id/session php_admin_value[session.save_path] = /var/lib/php/$id/session
php_admin_value[opcache.file_cache] = /var/lib/php/$id/opcache php_admin_value[opcache.file_cache] = /var/lib/php/$id/opcache

Loading…
Cancel
Save