SystemStackError (stack level too deep)

廉价感情. 提交于 2019-12-03 15:30:48

This is the Stack Overflow Problem. You can check the stack size here on various platforms.

ulimit command which basically provides control over the resources available to the shell and processes started by it, on systems that allow such control.

You can see the current limits with 'ulimit -a':

[mrblack@ /]# 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) 15910
max locked memory       (kbytes, -l) 64
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) 1024
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

And, you can change the stack size using 'ulimit -s' command.

ulimit -s 32768 # sets the stack size to 32M bytes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!