Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 78695 invoked from network); 26 Mar 2008 15:40:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Mar 2008 15:40:31 -0000 Received: (qmail 38258 invoked by uid 500); 26 Mar 2008 15:40:29 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 38231 invoked by uid 500); 26 Mar 2008 15:40:29 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 38222 invoked by uid 99); 26 Mar 2008 15:40:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2008 08:40:29 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aganguly01@gmail.com designates 64.233.182.184 as permitted sender) Received: from [64.233.182.184] (HELO nf-out-0910.google.com) (64.233.182.184) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2008 15:39:50 +0000 Received: by nf-out-0910.google.com with SMTP id g16so1988629nfd.24 for ; Wed, 26 Mar 2008 08:40:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=P5cUz6UqyM8eyQi4z+pWQ4e+MfBLNtq4r7ddZBHWmZs=; b=EKGZl/0ysDKXgq/kaslKBczkDj9owK+hFG7Vg+A/7P1hq1lhgOyQrvPHoMTTlfWkE4eIHPreHgviTQNF/s/SiVEJio9+4sLHIRPyPDYpLdsPOfrhMRrY4Xu67I/eZzOCwzoUtLj+svMMGDeB9hx0Ed9tEl48lVW3DI3mEWYiNCs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:mime-version:content-type; b=gCNQgTcgDFgsHEUYv1jRNvZfbBbfY4qZHBHJnoEu1p2n3/foBYZ1eo6Hjn+AK0jjK6/DI2IWxG9Ixg33MgbGGhnfv89WCwHremax27VCH09Kca3AiT2QlavgWtMk5ZpRiqgCNh6pzVT4At/hvP+mfJkBd0YBOhnc+G9+EaOR278= Received: by 10.78.138.6 with SMTP id l6mr246617hud.71.1206545997782; Wed, 26 Mar 2008 08:39:57 -0700 (PDT) Received: by 10.78.137.13 with HTTP; Wed, 26 Mar 2008 08:39:57 -0700 (PDT) Message-ID: <2ae67e000803260839v3e1382e6ve46ab1a738286292@mail.gmail.com> Date: Wed, 26 Mar 2008 21:09:57 +0530 From: "Arnab Ganguly" To: modules-dev@httpd.apache.org Subject: Query on deletion of Request pool MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1251_3103500.1206545997785" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_1251_3103500.1206545997785 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi All, I am getting a serious memory issue with my Apache webserver. Initially I was allocating buffer from by using apr_palloc from the request pool assuming the allocated memory is going to be released but not sure what is the problem the memory grows infinitely. I then tried with own malloc and then added a clean up function on apr_pool_cleanup_run.Which on debugging showed the free is being called for the allocated memory but still the behavior is same.On each request there is a increase in memory. Is there any way to release explicitly the memory of the request pool?I tried with apr_pool_cleanup_register and added a clean up function internally I was calling apr_pool_destroy(request_rec->pool).For the first request it worked correctly but on the later there was a crash and restart on the Apache process. It seems I may be doing something silly.Any help would be very much appreciated.BTW my webserver is heavily loaded and it is MPM=Worker Apache version 2.2.8 and OS is Red-Hat 3.0. What are the other possibilities where memory leak can looked into. Looking forward for response. Thanks -A ------=_Part_1251_3103500.1206545997785--