limit.conf nproc 未应用

limit.conf nproc 未应用

这是我们的limits.conf

*       soft    nofile  999999
*       hard    nofile  999999
*       soft    noproc  256000
*       hard    noproc  256000

然后我们在重新启动后检查更改,但是 max_user_processes 仍然为 4096。我们在 sysctl.conf 中将 fs.file-max 设置为 150000000

[root@smpp ~]# su development
[development@smpp ~]$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 256772
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 999999
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 4096
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

相关内容