From: Elan Ruusamäe Date: Thu, 6 Mar 2008 12:25:59 +0000 (+0000) Subject: - samples for core capturing X-Git-Tag: auto/ac/apache1-1_3_41-6~1 X-Git-Url: http://git.pld-linux.org/cgi-bin/gitweb.cgi?p=packages%2Fapache1.git;a=commitdiff_plain;h=ba415ee64106ed1ebe11030a30dbd80026d33944 - samples for core capturing Changed files: apache1-httpd.conf -> 1.18 apache1.sysconfig -> 1.10 --- diff --git a/apache1-httpd.conf b/apache1-httpd.conf index 1cf0f8b..1bc3603 100644 --- a/apache1-httpd.conf +++ b/apache1-httpd.conf @@ -83,6 +83,15 @@ MaxSpareServers 10 MaxClients 150 MaxRequestsPerChild 30 +# This controls the directory to which Apache attempts to switch before dumping +# core. The default is in the ServerRoot directory, however since this should +# not be writable by the user the server runs as, core dumps won't normally get +# written. If you want a core dump for debugging, you can use this directive to +# place it in a different location. +# Please note that you should also set ulimit coredumpsize to unlimited in +# /etc/sysconfig/apache for this to have any effect. +#CoreDumpDirectory /var/tmp + # These lines here are for packages which still use apxs to activate module. # LoadModule access_module modules/mod_access.so # AddModule mod_foo.c diff --git a/apache1.sysconfig b/apache1.sysconfig index 2c0dac1..e8e651a 100644 --- a/apache1.sysconfig +++ b/apache1.sysconfig @@ -11,6 +11,9 @@ HTTPD_OPTS="" # perhaps set 128MB memory limit #SERVICE_LIMITS="$DEFAULT_SERVICE_LIMITS -m 128000" +# if you want to use CoreDumpDirectory in apache.conf: +#SERVICE_LIMITS="-u unlimited -c unlimited" + # Skip apache restarts invoked from rpm installs. # Enable this if you run a production server and don't want rpm upgrade restart # your webserver like 20 times.