what is Maxclient of apache?

Discussion in 'Apache' started by staygreen, Apr 28, 2009.

  1. #1
    Hi, All

    I want to make my web server(apache2.0.53+Tomcat5.0.28+JVM1.4.0.8) to accept over 1000 request at the same time. I found Maxclients is the preferred apache tunning parameter. I wonder how to decide
    whether my server is non-threaded or threaded, according to
    server CPU model? My server is HP Dl380 G2 with RHEL3 U4 32bit installed. What is the correct setting policy to make
    my web server to accept over 1000 client session at the same time. Kindly please help.

    ============== Part taken from Apache 2.0.x document ====
    For non-threaded servers (i.e., prefork), MaxClients translates into the maximum number of child processes that will be launched to serve requests. The default value is 256; to increase it, you must also raise ServerLimit.

    For threaded and hybrid servers (e.g. beos or worker) MaxClients restricts the total number of threads that will be available to serve clients. The default value for beos is 50. For hybrid MPMs the default value is 16 (ServerLimit) multiplied by the value of 25 (ThreadsPerChild). Therefore, to increase MaxClients to a value that requires more than 16 processes, you must also raise ServerLimit.
    top
     
    staygreen, Apr 28, 2009 IP
  2. SSANZ

    SSANZ Peon

    Messages:
    861
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Increase child processes, and raise server limit.

    I suggest if you want 1000 client sessions - move to 64bit. I noticed a big difference in threads upon upgrading to 64 bit.
     
    SSANZ, Apr 30, 2009 IP