I get the error "Too many open files" about 2 times a day, and need to
restart php-fpm.
Below is the related configurations. Any help in this matter would be
great, as I have reached my upper tech level.
From the errorlog:
Warning: Unable to create file somefile because Too many open files in
someotherfile
Here's how php-fpm start via SMF:
[ Apr 23 09:14:19 Executing start method ("newtask -p php-fpm /opt/
local/sbin/php-fpm -c /opt/local/etc/php.ini"). ]
# cat /etc/project | grep php
php-fpm:104:PHP FastCGI Process Manager:::process.max-file-
descriptor=(basic,8192,deny)
# cat /opt/local/etc/php-fpm.conf | grep rlimit
; Set open file descriptor rlimit.
rlimit_files = 8192
; Set max core size rlimit.
;rlimit_core = 0
# prctl [pid] | grep -A 2 max-file-descriptor:
process: [pid]: /opt/local/sbin/php-fpm -c /opt/local/etc/php.ini
NAME PRIVILEGE VALUE FLAG ACTION
RECIPIENT
process.max-file-descriptor
basic 8.19K -
deny 8044
system 2.15G max
deny -