apache performance timing out

Posted by Mike on Server Fault See other posts from Server Fault or by Mike
Published on 2009-12-04T20:28:42Z Indexed on 2010/04/04 7:03 UTC
Read the original article Hit count: 346

Filed under:
|
|

Im running a webserver where I'm hosting about 6-7 websites. Most of these websites get their content from MySQL which is hosted on the same server. Traffic average per day is about 500-600 unique visitors, about 150K hits per week.

But for some reason sometimes websites send a timeout, OR sometimes websites dont load all images. I know that I should perhaps separate static content from dynamic content, but for now I think that's not a possibility.

I would appreciate any suggestions on how could I improve the performance of apache, so it doesn't keep timing out.

Server is running on Sempron LE 1300; 2.3GHz,512K Cache 2GB RAM 10Mbps/1Mbps

Services: MySQL, ProFTPD, Apache.

 Private  +   Shared  =  RAM used       Program
----------------------------------------------------
  1.2 MiB +  54.0 KiB =   1.2 MiB       proftpd
  4.1 MiB +  23.0 KiB =   4.1 MiB       munin-node
 20.8 MiB + 120.5 KiB =  20.9 MiB       mysqld
 47.3 MiB +   9.9 MiB =  57.3 MiB       apache2 (22)

top: Mem:   2075356k total,  1826196k used,   249160k free,

Timeout 35
KeepAlive On
MaxKeepAliveRequests 300
KeepAliveTimeout 5
<IfModule mpm_prefork_module>
    StartServers         10
    MinSpareServers      20
    MaxSpareServers      20
    MaxClients           60
    MaxRequestsPerChild 1000
</IfModule>
<IfModule mpm_worker_module>
    StartServers          2
    MaxClients          150
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadsPerChild      25
    MaxRequestsPerChild   0
</IfModule>

© Server Fault or respective owner

Related posts about apache

Related posts about load-balancing