Re: Apache memory hog
- From: John Murtari <jmurtari@xxxxxxxxxxx>
- Date: Mon, 13 Apr 2009 12:19:18 -0400
Adrian Marsh <adrian.marsh@xxxxxxxxxxxxx> writes:
I'm trying to track down an issue I have with our apache server. Its
a poweredge 1800, RHEL5x64 server, running httpd-2.2.3-22.el5. Its
mainly used as a subversion repository, via HTTPS with LDAP lookup for
authentication.
All was well with the system, running 1Gb of ram, until I did a yum
update, and also upgraded subversion from 1.4 to 1.5.
Since then, apache consumes vast amounts of RAM, with very little user
interaction. We've upped the memory to 12Gb of RAM, but even that
gets consumed within a few hours.
Obviously something is eating the ram.
So my questions are:
1) How do I find which module it is in apache thats consuming the ram?
(I'm 99% sure its subversion, but need evidence)
This can be real anoying to tracking down, but may be easier since
your memory consumption is do dramatic. One simple approach is just to
use 'top' and monitor the memory used by apache processes as the server
runs in response to requests. Keep strangers away for a while and just
run some controlled requests to see if you suddenly see a jump in memory
usage by one of the child processes.
You may also want to decrease the config setting for
MaxRequestsPerChild -- it may help as just a temporary band-aid till you
fine the real source of the problem. Try reducing it to 500 (I think
the default is 10000) and see it that changes things....
--
John
____________________________________________________________________
Customer Service Software Workshop Inc.
johnm@xxxxxxxxxxx "software that fits!" (TM)
Toll Free (877) 635-1968(x-211) http://www.thebook.com/
.
- References:
- Apache memory hog
- From: Adrian Marsh
- Apache memory hog
- Prev by Date: Re: Apache memory hog
- Next by Date: Enabling large (2MB) memory pages for Apache
- Previous by thread: Re: Apache memory hog
- Next by thread: Enabling large (2MB) memory pages for Apache
- Index(es):
Relevant Pages
|