cat /proc/sys/fs/nr_open
1048576 默认1024*1024,最大2147483584
cat /etc/sysctl.conf
fs.nr_open = 1048576
fs.file_max = 1024000
file_max < nr_open
cat /etc/security/limits.conf
- soft nproc 1024000
- hard nproc 1024000
- soft nofile 102400
- hard nofile 102400
The maximum value of fs.nr_open in Red Hat Enterprise Linux 7