Thursday, March 13

core dump



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?).



  • Maheshkumar Subbaiyan if its linux, make sure core dump is set to unlimited for the user which is running the wls

    ulimit -c 

    Above command should return "unlimited" , if its returning "0" then it wont create any core dump, you can enable the core dump using below command and then bounce the wls to make it affect,

    ulimit -c unlimited

3 comments:

  1. i have done the all the processes of setting "ulimit -c unlimited" changes affected
    killed 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

    ReplyDelete
  2. Do you need free Twitter Followers?
    Did you know you can get them AUTOMATICALLY & ABSOLUTELY FOR FREE by using Like 4 Like?

    ReplyDelete
  3. There's a chance you are eligible to receive a $350 IKEA Gift Card.

    ReplyDelete