系统在压力过大的情况下,会导致Linux系统 服务器出现”Too many open files”的错误并导致服务停止。主要是因为Linux同时可打开文件句柄数限制导致。
sysctl -p
服务器系统文件做以下修改:
/etc/sysctl.conf
fs.file-max=65536
/etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536
系统在压力过大的情况下,会导致Linux系统 服务器出现”Too many open files”的错误并导致服务停止。主要是因为Linux同时可打开文件句柄数限制导致。
sysctl -p
服务器系统文件做以下修改:
/etc/sysctl.conf
fs.file-max=65536
/etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536