[Linux-disciples] Apache/Perl running out of memory
Adam Rosi-Kessel
adam at rosi-kessel.org
Wed Jan 19 17:29:03 EST 2005
Yeah, MaxRequestsPerChild is an option, but I doubt it will fix a
memory leak. Conceivably the memory leak will happen slower, but
really the memory usage should be capped at whatever it is. You can
also try playing with max and min spare servers options.
My guess is the leak isn't really in apache but in php or one of the
other modules. It's really hard to track down this kind of thing.
Stephen R Laniel wrote:
> On Tue, Jan 18, 2005 at 04:12:26PM -0500, Adam Rosi-Kessel wrote:
>> You might check out this:
>>
>> http://lists.debian.org/debian-apache/2003/09/msg00065.html
>
> Might I help the problem by changing MaxRequestsPerChild in
> /etc/apache/httpd.conf? The comment before this setting in
> that file seems counterintuitive:
>
> # MaxRequestsPerChild: the number of requests each child process is
> # allowed to process before the child dies. The child will exit so
> # as to avoid problems after prolonged use when Apache (and maybe the
> # libraries it uses) leak memory or other resources. On most systems, this
> # isn't really needed, but a few (such as Solaris) do have notable leaks
> # in the libraries. For these platforms, set to something like 10000
> # or so; a setting of 0 means unlimited.
>
> I would think that if a program were leaky, I would set it
> to a *low* number.
>
> Here's the corresponding documentation on the Apache site:
> http://httpd.apache.org/docs/mod/core.html#maxrequestsperchild
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Linux-disciples mailing list
> Linux-disciples at lists.bostoncoop.net
> http://lists.bostoncoop.net/mailman/listinfo/linux-disciples
--
Adam Rosi-Kessel
http://adam.rosi-kessel.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20050119/41ceaf96/signature.pgp
More information about the Linux-disciples
mailing list