...

/

Collecting User Process Core Dumps

Collecting User Process Core Dumps

Learn how to collect user process core dumps.

Enabling core dump collection

In Linux, the option to collect core dumps is switched off by default; however, we can turn it on with:

ulimit -c unlimited

This method only turns on the collection of core dump files on a temporary basis. If we want to enable it permanently for every user, then we add or uncomment the following line in the /etc/security/limits.conf file (note that root can still override it).

* soft core unlimited

Also, if we want to limit root to 1 GB, we add or comment the following line in this file:

* hard core 1000000

Note: A process core dump is stored in the process’s working directory on ...