Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6B35775A4 for ; Wed, 28 Sep 2011 07:46:52 +0000 (UTC) Received: (qmail 58763 invoked by uid 500); 28 Sep 2011 07:46:49 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 58706 invoked by uid 500); 28 Sep 2011 07:46:48 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 58695 invoked by uid 99); 28 Sep 2011 07:46:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2011 07:46:48 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rainer.jung@kippdata.de designates 195.227.30.149 as permitted sender) Received: from [195.227.30.149] (HELO mailserver.kippdata.de) (195.227.30.149) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2011 07:46:39 +0000 Received: from [195.227.30.209] (notebook-rj [195.227.30.209]) by mailserver.kippdata.de (8.13.5/8.13.5) with ESMTP id p8S7kIJf020241 for ; Wed, 28 Sep 2011 09:46:18 +0200 (CEST) Message-ID: <4E82D0C6.4010601@kippdata.de> Date: Wed, 28 Sep 2011 09:46:14 +0200 From: Rainer Jung User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: users@httpd.apache.org References: <1317072921.53390.YahooMailNeo@web126017.mail.ne1.yahoo.com> In-Reply-To: <1317072921.53390.YahooMailNeo@web126017.mail.ne1.yahoo.com> X-Enigmail-Version: 1.3.2 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Apache freezes after running for 2 days. On 26.09.2011 23:35, Abhi Auradkar wrote: > I have been running the apache server to load test a application. > > The apache 2.2.20 is running on CentOS 5.6 > > -bash-3.2$ uname -a > Linux hdm102 2.6.18-238.19.1.el5.centos.plus #1 SMP Mon Jul 18 10:05:09 > EDT 2011 x86_64 x86_64 x86_64 GNU/Linux > -bash-3.2$ cat /etc/issue > CentOS release 5.6 (Final) > Kernel \r on an \m > > > -bash-3.2$ ./httpd -V > Server version: Apache/2.2.20 (Unix) > Server built: Sep 8 2011 23:41:28 > Server's Module Magic Number: 20051115:28 > Server loaded: APR 1.4.5, APR-Util 1.3.12 > Compiled using: APR 1.4.5, APR-Util 1.3.12 > Architecture: 64-bit > Server MPM: Worker > threaded: yes (fixed thread count) > forked: yes (variable process count) > Server compiled with.... > -D APACHE_MPM_DIR="server/mpm/worker" > -D APR_HAS_SENDFILE > -D APR_HAS_MMAP > -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) > -D APR_USE_SYSVSEM_SERIALIZE > -D APR_USE_PTHREAD_SERIALIZE > -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT > -D APR_HAS_OTHER_CHILD > -D AP_HAVE_RELIABLE_PIPED_LOGS > -D DYNAMIC_MODULE_LIMIT=128 > -D HTTPD_ROOT="/usr/local/apache2" > -D SUEXEC_BIN="/usr/local/apache2/bin/suexec" > -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" > -D DEFAULT_ERRORLOG="logs/error_log" > -D AP_TYPES_CONFIG_FILE="conf/mime.types" > -D SERVER_CONFIG_FILE="conf/httpd.conf" > > > I have a custom module(mod_XXXX.so) and oracle weblogic apache > plugin(mod_wl_22.so) loaded via LoadModule directive into apache. > > The load that is being tested is 2500 req/second. > > Under this load apache continues to run for 2-3 days but suddnely stops > responding. Has been happening consistently. > Once this condition occurs apache stops serving even static pages exa: > index.html or does not display server-status(mod_status). > > And the only way to recover is to restart the server. > > The errors that I see in the error log are the following ones, which > keep showing up frequently of which the first one when the weblogic > server refuses connections dues to overload condition. > > *1.* [Tue Sep 20 08:15:11 2011] [error] [client 135.115.142.108] > ap_proxy: trying POST /cwmp-allow/cwmpWeb/CPEMgt at backend host > '64.186.185.155/7003; got exception 'CONNECTION_REFUSED [os error=0, > line 1715 of ../nsapi/URL.cpp]: Error connecting to host > 64.186.185.155:7003' > *2.* [Tue Sep 20 08:15:12 2011] [error] [client 135.115.142.100] > *(34)Numerical result out of range: *mod_XXXX: XXXX_throttle_handler(): > failed to release the mutex lock > > Had a look at the errno of apr and *(34)Numerical result out of range > *doesn't seem to be coming from APR. > > Has some come across such a issue? Any kind of help/advice will really > helpfull. Use gstack or similar against the hangingApache processes to inspect what they are doing. My guess: since your modules logs "failed to release the mutex lock", the worker threads micht block in trying to acquire the unreleased lock. Regards, Rainer --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org