문제

Unfortunately, while trying to delete previous core dumps, I set my core file size hard limit to 0. Is there a way to change the hard limit of a ulimit parameter?

host-101-178:Labs evan$ ulimit -c 0
host-101-178:Labs evan$ ulimit -c 1000000
-bash: ulimit: core file size: cannot modify limit: Operation not permitted
host-101-178:Labs evan$ ulimit -c unlimited
-bash: ulimit: core file size: cannot modify limit: Operation not permitted
host-101-178:Labs evan$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
file size               (blocks, -f) unlimited
max locked memory       (kbytes, -l) unlimited
max memory size         (kbytes, -m) unlimited
open files                      (-n) 2560
pipe size            (512 bytes, -p) 1
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 709
virtual memory          (kbytes, -v) unlimited
host-101-178:Labs evan$ ulimit -c unlimited
-bash: ulimit: core file size: cannot modify limit: Operation not permitted
도움이 되었습니까?

해결책

Log out and log back in and the hard coredumpsize limit will be back to the default. Use

ulimit -S -c

to change the soft limit.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top