全部博文(135)
分类:
2011-09-27 10:36:45
linux程序栈大小ulimit里面就有了,
ulimit -a里面stack size就是
通过limit -s来重新设置大小
[root@localhost bin]$ 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) 274432
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 65535
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) 274432
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
[root@localhost bin]$ ulimit -s 5120
[root@localhost bin]$ 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) 274432
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 65535
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 5120
cpu time (seconds, -t) unlimited
max user processes (-u) 274432
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited