Enabling the Core Dumps in RHEL

Use the following commands to enable the core dumps in RHEL:

  1. Create the core directory under /tmp. choose the file path based on the availability of disk space. Give the following command to create a directory in access gateway component.

    mkdir /data/cores

  2. Set permission as follows:

    1. chown wwwrun /data/cores

    2. chmod 777 /data/cores

  3. Using vi editor, open the /etc/sysctl.conf file.

  4. Add kernel.core_pattern=/data/cores/core.%e.%p.%h.%t to the file.

  5. Edit the file /etc/systemd/system.conf.

  6. Add defaultlimitcore=infinity to the file.

  7. Edit the file/etc/init.d/functions

    NOTE:Ensure not to core dump anywhere unless requested.

  8. Uncomment corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}".

  9. Add the following advanced option in access gateway configuration as follows:

  10. Edit the file /etc/init.d/novell-apache2.

  11. Add ulimit -c unlimited in the start*) section.

  12. Restart the apache2 service using /etc/init.d/novell-apache2 restart.

  13. Reboot the server.