Welcome! Log In Create A New Profile

Advanced

Solaris: Too many open files

Posted by webjay 
webjay
Solaris: Too many open files
April 23, 2011 05:54AM
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 -
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 216
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready