Re: Memory usage in Apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx> wrote:
On 5/11/07, Arnab Ganguly <aganguly01@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux