The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

teaking apache

Discussion in 'EasyApache' started by anand, Aug 30, 2003.

  1. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    I am not sure whether this has been discussed earlier or not, i am looking for some apache optimisations. I have a box on which we are getting many hits and i keep on getting cpanel max client reached message as well.

    I tried to search the net and came across that if i increase the max client setting in httpd.conf to 256 it would be more than enough.

    I would like to know if there are any other settings which can make apache to be more tweaked for more hits ??

    cPanel.net Support Ticket Number:
     
  2. mickeymouse

    mickeymouse Well-Known Member

    Joined:
    Sep 16, 2003
    Messages:
    389
    Likes Received:
    0
    Trophy Points:
    16
    Dear anand,

    You can set your apache configuration as given below for better performance. For that some of the suggections are,
    Configure your apache, with

    MaxClients 256 # absolute minimum, maybe you have to recompile apache
    MinSpareServers 100 # better 150 to 200
    MaxSpareServers 200 # bring it near MaxClients
    Make shure, you have enough resources available, su to apache, make shure
    ulimit -a
    data seg size (kbytes) unlimited
    file size (blocks) unlimited
    max locked memory (kbytes) unlimited
    max memory size (kbytes) unlimited
    open files 65536 (!!)
    pipe size (512 bytes) 8
    stack size (kbytes) unlimited
    cpu time (seconds) unlimited
    max user processes 4095 (!!)
    virtual memory (kbytes) unlimited

    Please try with this setting.

    Regards,

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page