Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change 
notification.

The "CoreDump" page has been changed by jmcg.
http://wiki.apache.org/httpd/CoreDump

--------------------------------------------------

New page:
This wiki show cases how to make sure your httpd generates Core Dumps on 
different platforms.

Generally there are two things to make sure:

 * Generating coredumps is allowed
 * Generating coredumps is possible

The first is usually controlled by an Operating System facility which either 
globally or locally limits this ability.

The latter can either be controlled by the OS, or to a certain extend by the 
daemon. In Apache httpd we have
[[http://httpd.apache.org/docs/current/mod/mpm_common.html#coredumpdirectory|CoreDumpDirectory]]
 is a hint to the daemon
to [[http://www.freebsd.org/cgi/man.cgi?query=chdir&sektion=2|chdir(2)]] to a 
directory where it can leave behind a core file.

This is, because daemons usually run in `/` where they do not have write 
permissions.

<<TableOfContents(2)>>

= Linux =
We can extend `apachectl` to enable coredumps by writing:
{{{
ulimit -c unlimited
}}}
Note that this is what controls core dump settings on a user/session base. For 
system wide settings see:
`/etc/security/limits.conf`, respectively limits.conf(5).

To help with 
[[http://httpd.apache.org/docs/current/mod/mpm_common.html#coredumpdirectory|CoreDumpDirectory]],
 see 
[[http://www.kernel.org/doc/man-pages/online/pages/man5/core.5.html|core(5)]] 
how generate a core_pattern, which you can set via:
{{{
sysctl -w kernel.core_pattern=/some/core/pattern
}}}

= FreeBSD =
Depending on the shell, we can either use `ulimit -c unlimited` if we're using 
[[http://www.freebsd.org/cgi/man.cgi?query=sh&sektion=1|sh(1)]], or, if we use 
[[http://www.freebsd.org/cgi/man.cgi?query=csh&sektion=1|csh(1)]]:
{{{
limit coredumpsize unlimited
}}}
Note that this is what controls core dump settings on a user/session base. For 
system wide settings see: `/etc/login.conf`, respectively 
[[http://www.freebsd.org/cgi/man.cgi?login.conf|login.conf(5)]], or set the 
`kernel.coredumps` to 1:
{{{
sysctl kern.coredumps=1
}}}
To help with 
[[http://httpd.apache.org/docs/current/mod/mpm_common.html#coredumpdirectory|CoreDumpDirectory]],
 see [[http://www.freebsd.org/cgi/man.cgi?core|core(5)]] how generate a 
`corefile` which you can set via:
{{{
sysctl kern.corefile=/some/core/pattern
}}}

= Solaris =
Everything of the above can be controlled via 
[[http://download.oracle.com/docs/cd/E19253-01/816-5166/6mbb1kpv1/index.html|coreadm(1M)]],
 see this 
[[http://developers.sun.com/solaris/articles/manage_core_dump.html|How To]] for 
a comprehensive list of examples.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to