1. 程式人生 > >linux最大進程數

linux最大進程數

style col pen linux message mes 進程 code 默認

使用 ulimit -a 命令,查看 max user processes 的輸出,就是系統最大進程數

core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 31216
max locked memory       (kbytes, 
-l) 16384 max memory size (kbytes, -m) unlimited open files (-n) 1024 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) 31216 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited

max user processes 的值默認是 # cat /proc/sys/kernel/threads-max的值/2,即系統線程數的一半

linux最大進程數