Hi Tom, Well, at the moment the servers running very low on available memory: Mem: 12307068k total, 12121380k used, 185688k free, 286808k buffers Swap: 2031608k total, 0k used, 2031608k free, 11081692k cached Hence my original question #3, on where the memorys going after httpd is stopped/started (via a normal init.d stop/start). Yet none of that 12gb seems to be allocated anywhere. The processes listed below are sorted by max usage. Since my last email (10mins?) httpd has grown to: 10002 apache 15 0 297m 35m 5024 S 0.0 0.3 0:02.17 httpd 10007 apache 15 0 296m 33m 4864 S 0.0 0.3 0:01.11 httpd 10003 apache 16 0 295m 32m 5164 S 0.0 0.3 0:00.60 httpd 10005 apache 15 0 295m 32m 4952 S 0.0 0.3 0:00.99 httpd 10006 apache 15 0 295m 32m 5012 S 0.0 0.3 0:01.02 httpd 10000 apache 15 0 294m 31m 5256 S 0.0 0.3 0:01.42 httpd 4226 mysql 15 0 257m 31m 4264 S 0.0 0.3 9:31.30 mysqld 10001 apache 15 0 290m 27m 5228 S 0.0 0.2 0:00.48 httpd 10004 apache 15 0 289m 27m 5144 S 0.0 0.2 0:00.25 httpd To get that memory back I have to reboot the server. The yum update did change a number of core packages yes. I'd tested it for a few weeks in a VMWARE virtual machine, to check functionality, but hadn't realized that it might even cause the issues we see now with regards to memory. Is there anyway to dig into the memory usage within those httpd processes? -----Original Message----- From: Tom Evans [mailto:tevans.uk@xxxxxxxxxxxxxx] Sent: 03 April 2009 14:16 To: users@xxxxxxxxxxxxxxxx Cc: aw@xxxxxxxxxx Subject: RE: Apache memory hog On Fri, 2009-04-03 at 13:58 +0100, Adrian Marsh wrote: > 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 > Doesnt look that bad. That 27[789]m reported as SIZE is shared between the processes, shared pages and the like, and the RES isn't excessive in my opinion. What does mod_status and mod_server_info say is going on when you notice the memory starvation? What precisely did you change with your yum update? Did that change core packages, like libc etc? Cheers Tom --------------------------------------------------------------------- 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 --------------------------------------------------------------------- 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