httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Marsh" <Adrian.Ma...@ubiquisys.com>
Subject RE: [users@httpd] Apache memory hog
Date Fri, 03 Apr 2009 12:58:15 GMT
Hi Andre,

Thanks for the reply. No its definitely the httpd process.  I see each thread consuming hundreds
of megs of RES memory being used in TOP.  I just restarted it and already each is consuming:

10006 apache    15   0  279m  15m 3160 S  0.0  0.1   0:00.29 httpd
10004 apache    15   0  278m  13m 3400 S  0.0  0.1   0:00.05 httpd
10007 apache    15   0  278m  13m 3048 S  0.0  0.1   0:00.04 httpd
10001 apache    15   0  277m  13m 3456 S  0.0  0.1   0:00.08 httpd
10003 apache    15   0  277m  13m 2976 S  0.0  0.1   0:00.10 httpd
10002 apache    15   0  277m  13m 3112 S  0.0  0.1   0:00.07 httpd
10005 apache    15   0  277m  13m 3080 S  0.0  0.1   0:00.06 httpd
10000 apache    15   0  277m  12m 3432 S  0.0  0.1   0:00.51 httpd

Also, I forgot to mention its 1.5.5 of SVN (1.5.2 had a mod_ bugfix for a memory leak).

What interests me at the moment is diagnosing which module it is (as others running 1.5.5
don't report this issue).  It's a fairly vanilla httpd setup other than the svn config.

Adrian


-----Original Message-----
From: André Warnier [mailto:aw@ice-sa.com] 
Sent: 03 April 2009 10:37
To: users@httpd.apache.org
Subject: Re: [users@httpd] Apache memory hog

Adrian Marsh wrote:
> Hi,
> 
>  
> 
> 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)
> 
>  
> 
> 2) The apache docs talk about it having its own memory management, but
> what config options are these, and how (roughly) should I be setting
> them?
> 
>  
> 
> 3) When the memory is consumed by httpd, and I stop the httpd process,
> it quite often doesnt return the memory to the OS, leaving 11Gb in
> "limbo" somewhere.  Is there a way to reclaim this ?
> 
The last paragraph above triggers a doubt : are you sure it is the httpd 
process which is eating up memory ?
Can you confirm this with "top", for instance ?
(Install top if it's not there; start it; use shift-F to select the 
display options, then N <CR> to select memory)
This will show you which processes are really using memory.
It is possible that some Apache process starts another separate process, 
which would use up memory, and that this process does not get stopped 
when you stop Apache.

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


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


Mime
View raw message