小编Ian*_* C.的帖子

系统重启后文件描述符限制丢失

我正在尝试增加系统上进程的默认文件描述符限制。具体来说,我试图在机器启动时限制应用到 Condor 守护进程及其子进程。但是这些限制永远不会应用于机器启动。

我有以下限制/etc/sysctl.conf

[root@mybox ~]# cat /etc/sysctl.conf
# TUNED PARAMETERS FOR CONDOR PERFORMANCE
# See http://www.cs.wisc.edu/condor/condorg/linux_scalability.html for more information

# Allow for more PIDs (to reduce rollover problems); may break some programs
kernel.pid_max = 4194303

# increase system file descriptor limit
fs.file-max = 262144

# increase system IP port limits
net.ipv4.ip_local_port_range = 1024 65535
Run Code Online (Sandbox Code Playgroud)

并在/etc/security/limits.conf

[root@mybox ~]# cat /etc/security/limits.conf
# TUNED PARAMETERS FOR CONDOR PERFORMANCE
# See http://www.cs.wisc.edu/condor/condorg/linux_scalability.html for more information
# Increase the limit …
Run Code Online (Sandbox Code Playgroud)

process limit open-files

5
推荐指数
1
解决办法
2745
查看次数

标签 统计

limit ×1

open-files ×1

process ×1