Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 3169 invoked from network); 11 May 2007 15:44:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 May 2007 15:44:46 -0000 Received: (qmail 79489 invoked by uid 500); 11 May 2007 15:44:40 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 79477 invoked by uid 500); 11 May 2007 15:44:40 -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 79466 invoked by uid 99); 11 May 2007 15:44:40 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 May 2007 08:44:40 -0700 X-ASF-Spam-Status: No, hits=2.3 required=10.0 tests=HTML_MESSAGE,MAILTO_TO_SPAM_ADDR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of aganguly01@gmail.com designates 209.85.132.244 as permitted sender) Received: from [209.85.132.244] (HELO an-out-0708.google.com) (209.85.132.244) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 May 2007 08:44:33 -0700 Received: by an-out-0708.google.com with SMTP id d31so251924and for ; Fri, 11 May 2007 08:44:12 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=CXGnyU9tBzxiYdq6FctUiIjsw5IrLYNhSlj7E7EdX22CKzrPBk7U/QSTRsCWbm/mDg0Zp3nw8n2XpVkRTk63/dzE0yyHe/mEvsZTN2RGgO34zyfaWyYQE/rlItColfWC6qR90tgCDBV4mmL2SHNgNmR+WPlLDqZ1Neg7pI8wO18= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=RlJQpTCd+bYep93qGT0clIj1nl11fzPXG8H0BFmzXwOD0YOyn1sz848jP8npl6jvozHYoV9OxIEL+kfWeBUurse42UYRhLEuH5MFBtrN4oJsVAcs9ri/WnX8ihGdI71pgLGahcw5nl+3Z9BL0VJywd7uwTUDMjhF5RwaBgRwJ6M= Received: by 10.100.32.1 with SMTP id f1mr2335797anf.1178898249111; Fri, 11 May 2007 08:44:09 -0700 (PDT) Received: by 10.100.10.10 with HTTP; Fri, 11 May 2007 08:44:08 -0700 (PDT) Message-ID: <2ae67e000705110844h1adc3cefg27230f404b59f4a9@mail.gmail.com> Date: Fri, 11 May 2007 21:14:08 +0530 From: "Arnab Ganguly" To: users@httpd.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_185191_2890796.1178898248968" References: <2ae67e000705102147o18376a56w3276db7f2e76f3e6@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Memory usage in Apache ------=_Part_185191_2890796.1178898248968 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, What my observation is, intialy the memory consumption is increased but after sometime it remains same.Also the memory consumption by the active daemon doesn't comes down even there is no processing of request.All the above things happen only when I keep the MaxRequestperchild to 0. My next question is I hve kept the ServerLimit and StartServers as 1 but once the Apache runs for say around 20hrs with good traffic, it still launches one more daemon process...Why this behavior is happening I am not sure. The modules that I have loaded are the cgi module, server-status module and mod_authz_host module.Does this have any impact one the above behaviors? Thanks in advance. Regards -A On 5/11/07, Joshua Slive wrote: > > On 5/11/07, Arnab Ganguly wrote: > > Hi, > > How is the memory handled in Apache.I see the daemon process launched > by > > Apache, as it runs for a long time both its SZ and RSS increases over > the > > period of time.Is there any memory issues in Apache?What should I do to > take > > care of it?I have kept the MaxRequestPerChild as 0.Looking forward for > > response. > > I don't believe there are any known memory leaks in apache httpd. But > it wouldn't be unusual for memory usage to increase somewhat over time > since some requests require more memory than others and it is usually > impossible to return memory to the OS. It shouldn't continue to rise > indefinitely. Memory leaks might be present in some module that you > using with apache. > > You can, of course, recycle processes occasionally by setting > MaxRequestsPerChild to some not-too-small number. > > Other than that, I'm not sure what question you are really asking. > > Joshua. > > --------------------------------------------------------------------- > 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 > > ------=_Part_185191_2890796.1178898248968 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,
What my observation is, intialy the memory consumption is increased but after sometime it remains same.Also the memory consumption by the active daemon doesn't comes down even there is no processing of request.All the above things happen only when I keep the MaxRequestperchild to 0.

My next question is I hve kept the ServerLimit and StartServers as 1 but once the Apache runs for say around 20hrs with good traffic, it still launches one more  daemon process...Why this behavior is happening I am not sure.
The modules that I have loaded are the cgi module, server-status module and mod_authz_host module.Does this have any impact one the above behaviors?

Thanks in advance.
Regards
-A

On 5/11/07, Joshua Slive <joshua@slive.ca> wrote:
On 5/11/07, Arnab Ganguly <aganguly01@gmail.com> wrote:
> Hi,
>  How is the memory handled in Apache.I see the daemon process launched by
> Apache, as it runs for a long time both its SZ and RSS increases over the
> period of time.Is there any memory issues in Apache?What should I do to take
> care of it?I have kept the MaxRequestPerChild as 0.Looking forward for
> response.

I don't believe there are any known memory leaks in apache httpd. But
it wouldn't be unusual for memory usage to increase somewhat over time
since some requests require more memory than others and it is usually
impossible to return memory to the OS. It shouldn't continue to rise
indefinitely. Memory leaks might be present in some module that you
using with apache.

You can, of course, recycle processes occasionally by setting
MaxRequestsPerChild to some not-too-small number.

Other than that, I'm not sure what question you are really asking.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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


------=_Part_185191_2890796.1178898248968--