Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • uploadDumps.sh collects core dumps/ mini dumps  to crash server whenever any applications crashes.

 CoredumpCoredump

Core dump files generated after an uncaught signal in a process (as a SIGSEGV or SIGQUIT), are generated in the base directory where the program was executed, and the core dumps starts with the name  as “core” or “core.PID”.

By default size of the core will be zero, To generate the core, we need to set the size of the core to unlimited. 

  • ulimit -c unlimited

By default, core will be generated in the current directory with the file name "core". We can change the core generating directory from current directory to another by editing the kernel configuration file core pattern(/proc/sys/kernel/core_pattern)  in the kernel.

  • echo "newpattern" > /proc/sys/kernel/core_pattern

Core pattern is helpful in the case if there are couple of core dumps files in one directory and we don't know which program caused it.