httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sai Jai Ganesh Gurubaran" <>
Subject RE: [users@httpd] How to force a core dump on Linux
Date Tue, 09 Jan 2007 09:30:27 GMT
Hi Sander,
	Thanks for the inputs.
We are having a production server that just stops processing requests
over a period of time.
To minimize the downtime, we would like to forcefully core dump apache
(when it stops processing requests) and then gdb the core file at a
later point of time.

Is there any command we can use for this?

-----Original Message-----
From: Sander Temme [] 
Sent: Tuesday, January 09, 2007 1:06 PM
Subject: Re: [users@httpd] How to force a core dump on Linux

On Jan 8, 2007, at 10:34 PM, Sai Jai Ganesh Gurubaran wrote:

> We are getting frequent Apache (59) outages at our installation.
> Apache is compiled in as worker module, forward proxy on RHEL 3
> I would like to core dump Apache when such a outage occurs.
> Can any one tell me how to force Apache to core dump?

1) The shell that starts httpd needs to have ulimit -c set

2) Set the CoreDumpDirectory directive in httpd.conf to point to a
    directory where httpd child processes can write (needs to be
    writable by the username set in your User directive

3) After starting your server with the above in place, attach to your
    problem child process with gdb and use the bt command


PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF

The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this 
message by anyone else is unauthorized. If you are not the 
intended recipient, any disclosure, copying, or distribution of the 
message, or any action or omission taken by you in reliance on 
it is prohibited and may be unlawful. Please immediately contact 
the sender if you have received this message in error. This email 
does not constitute any commitment from Cordys Holding BV or 
any of its subsidiaries except when expressly agreed in a written 
agreement between the intended recipient and 
Cordys Holding BV or its subsidiaries.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message