Re: Apache memory hog



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/
.



Relevant Pages

  • Re: OT: MS Silverlight Clues
    ... One quick question is SilverLight chewing up memory space when the browser ... Start with an open browser, check available RAM. ... neutral page, as with the others, Java still consumes 11MB when idle. ...
    (comp.databases.pick)
  • Re: Windows Explorer consuming too much system resource
    ... My Desktop which has 256 SD RAM has Win XP pro and it consumes too ... Clean boot in Windows XP - http://support.microsoft.com/kb/310353 ... You also don't really have enough RAM in that machine. ... another 256MB of memory would be a good idea. ...
    (microsoft.public.windowsxp.general)
  • Re: how big should store.exe be?
    ... 896mb is used for log buffers and the store process generally ... consumes 1.5GB or so of RAM. ... it does consume a lot of memory. ...
    (microsoft.public.exchange.admin)
  • Re: How to reclaim memory without GC.start [Using up massive amounts of RAM]
    ... I've decided that if a program consumes ALL of a computer's ... So what's the best way to consume all of a computer's RAM? ... Consuming memory is easy. ...
    (comp.lang.ruby)