Core dump will be generated automatically if a program crashed due to segmentation fault or some other reason. But core dump will not be generated if an application halt and been terminate by control+c or conventional way of kill or pkill.
In order to force a core dump generation you could run kill -6
You should also make sure that you have enabled it and have provided enough space and permissions for it to get generated.
For Linux, the coredump is turned off by default on all systems. For RedHat Advanced Server 2.1, it should be under /etc/security. There should be a self-explanatory file called limits.conf and look for the word "core". If set to "0", then coredump is disabled.
For Solaris, you can also make sure core files are enabled with the coreadm command.
Check ulimit -a to see whether your environment allows core files to be produced.
ulimit -c (This is the size limit of the core file. Fix it with ulimit -c unlimited).
Kernel limitation (hard limit for ulimit -c).
Available disk space for the user (e.g., is there disk quota?).
i have done the all the processes of setting "ulimit -c unlimited" changes affected
ReplyDeletekilled the process by kill -6
>>>but i dont see any core dump or log in the /etc/security or /managed servers location...
>>>>although the servers are running before i made these changes....
>>>>>>>do we need restart to change affect.....
>>>>>>>>>>>>>>>>>>>PLEASE SUGGEST ANY ONE<<<<<<<<<<THANKS IN ADVANCE
Do you need free Twitter Followers?
ReplyDeleteDid you know you can get them AUTOMATICALLY & ABSOLUTELY FOR FREE by using Like 4 Like?
There's a chance you are eligible to receive a $350 IKEA Gift Card.
ReplyDelete