Linux increase the maximum number of open files question.
default limitation umber 1024 set to all users following
Code:
[root@localhost ~]# tail /etc/security/limits.conf
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4
# End of file
* soft nofile 1024
* hard nofile 1024
[root@localhost ~]# ulimit -n
1024
System-wide File Descriptors
Code:
[root@localhost ~]# cat /proc/sys/fs/file-max
228182
Question: i checked the open files of php process to output 17541,i thin the limitation of ulimit.conf is per unique user,but it was failure ,i don't know where the issue .need you help Thanks.
Code:
[root@localhost ~]# lsof -n|awk '{s+=gsub(/php-fpm/,"a")}END{print s}'
17541