Results 1 to 2 of 2
Hi,
I am using a server application running as daemon process, which gets crash after some time( 2 days), To identify the root cause area, i am to take the ...
- 06-30-2009 #1Just Joined!
- Join Date
- Feb 2009
- Posts
- 3
How to core dump of daemon process on linux
Hi,
I am using a server application running as daemon process, which gets crash after some time( 2 days), To identify the root cause area, i am to take the core dump of this daemon process.
I am able to core dump of any user application(debug binary). But i am not able to debug the Daemon application( i have build this application in debug mode).
Please help to resolve the issue.
Machine-> RHEL 5.3
Thanks
ND
- 07-09-2009 #2Just Joined!
- Join Date
- Apr 2005
- Location
- Romania
- Posts
- 42
To enable dumps for every daemon:
ulimit -c unlimited >/dev/null 2>&1 (-c maximum size of core files)
ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0} >/dev/null 2>&1
Dump for system:
DAEMON_COREFILE_LIMIT='unlimited'
The same for every daemon (in /etc/sysconfig/_daemon_): DAEMON_COREFILE_LIMIT='unlimited'
Dump for SUID programs:
echo 1 > /proc/sys/kernel/suid_dumpable
In /etc/sysctl.conf:
kernel.core_uses_pid = 1
kernel.suid_dumpable = 1
and sysctl -p


Reply With Quote