RE: [users@httpd] Apache - High Memory Usage Problem - HELP!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Did you compile apache yourself?

If you did, did you strip the binary

Strip --strip-unneeded httpd 

? That would make the memory footprint smaller I believe. 

Stripping libphp4.so as well might save some memory.

Are you using worker mpm or prefork? 

(does worker even work on 64?)



________________________________________
From: Marc Perkel [mailto:marc@xxxxxxxxxx] 
Sent: Tuesday, September 27, 2005 1:03 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re: [users@httpd] Apache - High Memory Usage Problem - HELP!



Joe Orton wrote:

On Tue, Sep 27, 2005 at 08:37:16AM -0700, Marc Perkel wrote:
Kind of an odd problem but I'm moving my stuff to a new server and for 
some reason Apache (2.0.54) is using a lot more memory on the new server 
than on the old server.

I'm hosting the same web sites and (I think) I have all the same 
software installed. Both running Fedora Core 4. The new server is 
running the 64 bit Linux. The new server is a dual core athlon - the old 
has 2 Xeon CPUs. Both have 4 gigs of ram.

64-bit platforms will in general show more memory use than a 32-bit 
platform due to pointers etc being twice as big.  Linux on amd64 will 
also appear to have unnaturally virtual memory use due to the way the 
loader/kernel interact.  But this isn't actually physical RAM being used 
up so don't worry about it.

To compare the two systems make sure that you have exactly the same 
modules being loaded; PHP for instance will show up larger VM use 
because it drags in so many shared libraries.

Thanks for your reply - but the differences are very dramatic. Makes me
think there's something else different. I'm trying to remember - isn't there
a php trick that shows you the php configuration in html form? Maybe I could
compare the two installations. Or is there a httpd trick to display modules
and memory usage?

I could use some tricks to diagnose this.

The new server - running top looks like this:

  532 apache    15   0  199m  51m  11m  0.0   0:00
/usr/sbin/httpd                                                
 1091 apache    15   0  199m  51m  11m  0.0   0:00
/usr/sbin/httpd                                                
  866 apache    15   0  240m  45m  11m  0.0   0:00
/usr/sbin/httpd                                                
32135 apache    16   0  235m  40m  11m  0.0   0:00
/usr/sbin/httpd                                                
  583 apache    15   0  235m  40m  11m  0.0   0:00
/usr/sbin/httpd                                                
  850 apache    15   0  235m  40m  11m  0.0   0:00
/usr/sbin/httpd                                                
  857 apache    16   0  233m  38m  11m  0.0   0:00
/usr/sbin/httpd                                                
25277 apache    16   0  186m  38m  11m  0.0   0:00
/usr/sbin/httpd                                                

The old server running top looks like this:

13393 apache    16   0 49924  30m  13m  0.0   0:01
/usr/sbin/httpd                                                
 1539 apache    16   0 49832  30m  13m  0.0   0:00
/usr/sbin/httpd                                                
 5883 apache    15   0 49780  30m  13m  0.0   0:00
/usr/sbin/httpd                                                
32091 apache    16   0 49780  30m  13m  0.0   0:00
/usr/sbin/httpd                                                
 1537 apache    16   0 49692  30m  13m  0.0   0:00
/usr/sbin/httpd                                                
 1540 apache    16   0 49692  30m  13m  0.0   0:00
/usr/sbin/httpd                                                
 9882 apache    16   0 49760  30m  13m  0.0   0:00
/usr/sbin/httpd                                                
 9895 apache    16   0 48940  29m  13m  0.0   0:00
/usr/sbin/httpd                                                



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux