文章目录
  1. 1. CentOS: ulimit
    1. 1.1. ulimit -a
    2. 1.2. 修改max user processes

Linux操作系统有很多内核参数都会限制用户级程序运行,当遇到一些莫名其妙的CORE时,在确保程序无问题时,一定要去检查一下相关系统参数。

CentOS: ulimit

ulimit -a

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
size          (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 514901
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 65536
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 102400
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

修改max user processes

1
vim /etc/security/limits.d/90-nproc.conf
文章目录
  1. 1. CentOS: ulimit
    1. 1.1. ulimit -a
    2. 1.2. 修改max user processes