Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How make Linux core dumping for every process not only for deaemons?

share|improve this question
add comment

1 Answer

you need to change these

check your current core limit with ulimit

root@x:/tmp# ulimit -c
0

0 means no core is generated

root@x:/tmp# ulimit -c unlimited

set it to unlimited or any other value (this is max size of core file)

root@x:/tmp# ulimit -c
unlimited
root@x:/tmp# 

root@x:/tmp# 
root@x:/tmp# ulimit -a
core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 20
file size               (blocks, -f) unlimited
pending signals                 (-i) 16382
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) unlimited
v    irtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
root@x:/tmp# 

This will change core limit for current session. You need to add this in /etc/init.d [file name depends on distribution] so that these values are set when computer boots.

share|improve this answer
    
But dump is created only for daemons not for normal processes based on my knowledge and stackoverflow.com/questions/8789214/… –  Svisstack Jan 9 '12 at 15:36
    
No, coredump can be generated by any process. –  daya Jan 9 '12 at 15:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.