Re: Apache Tunning

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

 



i thibk that you can down the variable
 
MaxRequestsPerChild  20000 to 2000 it's too much and if the child process keeps the request well i't grows bigger and bigger in memory
KeepAlive is ON. i put on my server off
 
this too eats a huge amount of memory.
 
my server conf with 8gs and dual xeon processors with 300 simultaneous connections and about 8k-12k hits/min
<IfModule worker.c>
ServerLimit          30
ThreadLimit          70
StartServers           20
MaxClients            500
MinSpareThreads        10
MaxSpareThreads        15
ThreadsPerChild        50
MaxRequestsPerChild  2000
MaxMemFree          5000
ReceiveBufferSize  714400
 
On Thu, Mar 12, 2009 at 1:05 PM, kulbir Saini <kulbir.saini1@xxxxxxxxx> wrote:
Issue- We have web server with two instances of apache running. Its with Worker MPM. Traffic is around 4200 hits/min on the server(both instances). We see server getting into high load raises above 5-6 and most of the CPU used is in "user space" by httpd process. Its a 2Dual core CPU box.  when load reaches around 5, i checked vmstat and it gives process in cpu run queue above 4 or 5. Since its a prod box we get alert and need to bounce. The server environment is-

Environment - 2 apache instances with corresponding tomcat instances.
Applciation - Used to server a simple .pac file.




Scenario -

OS - RHEL2AS ( 2.4.9-e.40enterprise #1 SMP)
apache- Apache/2.0.48
arch - 32bit
memory - 4GM + 1GB swap

httpd.conf  (worker setting original)

<IfModule worker.c>
#ServerLimit         25
StartServers         2
MaxClients         300
MinSpareThreads     75
MaxSpareThreads    250
ThreadsPerChild     25
MaxRequestsPerChild  20000
</IfModule>

KeepAlive is ON. KeaapAliveTime is default(15)

the httpd "RSS" value is appx 4.2MB

Need help in tunning apache so that best use of Hardware resources can be made.

Thanks
Kulbir


[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