Use the following commands to enable the core dumps in RHEL:
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
Set permission as follows:
chown wwwrun /data/cores
chmod 777 /data/cores
Using vi editor, open the /etc/sysctl.conf file.
Add kernel.core_pattern=/data/cores/core.%e.%p.%h.%t to the file.
Edit the file /etc/systemd/system.conf.
Add defaultlimitcore=infinity to the file.
Edit the file/etc/init.d/functions
NOTE:Ensure not to core dump anywhere unless requested.
Uncomment corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}".
Add the following advanced option in access gateway configuration as follows:
Edit the file /etc/init.d/novell-apache2.
Add ulimit -c unlimited in the start*) section.
Restart the apache2 service using /etc/init.d/novell-apache2 restart.
Reboot the server.