Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2004
    Poland, Lublin

    Question perfect apache settings ?


    i have problem, because

    23:26:53 up 9 days, 30 min, 1 user, load average: 1.66, 1.66, 1.85
    130 processes: 124 sleeping, 6 running, 0 zombie, 0 stopped
    CPU states: 40.3% user 6.3% system 0.0% nice 0.0% iowait 53.2% idle
    Mem: 514028k av, 491252k used, 22776k free, 0k shrd, 21836k buff
    297908k active, 157012k inactive
    Swap: 2104504k av, 117252k used, 1987252k free 136240k cached
    normall its 230 process & 200 sleeping.. memory used ~90%, cpu its 30-60% ... load avg its nearly 5-18

    and now, how to make perfect apache configuration ?
    + time out
    + keep alive on/off
    + max request

    maybe sets priority for apache, but how ?
    or maybe, restart apache every 1hour ?

    (addon: php+ssl+mysql ofkorz..)
    buy more memory or better cpu ?

  2. #2
    Join Date
    Mar 2003
    California USA
    depends on the system stats
    Steven Ciaburri | Proactive Linux Server Management -
    Managed Servers (AS62710), Server Management, and Security Auditing.

  3. #3
    Join Date
    Mar 2004
    Poland, Lublin
    my dedicated:

    celeron 2.4
    512 memory

  4. #4
    Join Date
    Sep 2000
    Alberta, Canada
    how to make perfect apache configuration ?

    No such animal. There is only the setup that works best for that Server. This depends on lots of variables and only test/verify will determine what works best.

    In keeping it short whilst still pretty generic and based on what is posted above, you might want to get more RAM. Regardless of what the Server is used for, more RAM is always a good thing and 1 GB is a good base to work from.

    time out = 45
    keep alive OFF

    You also might want to open up Apache a bit more.

    MinSpareServers 10
    MaxSpareServers 20
    StartServers 5
    MaxClients 200 or maybe 240
    MaxRequestsPerChild 10000 << never leave this setting at 0, for any Server

    Ignore any 'failed' eMails you may get, for the first 12 hrs. after changes. It takes at least that long, to start getting any decent results you can go by. There is still mySQL processes to be considered, and adjusting of those settings, but the above Apache settings should help with your current situation. - for all your Hosting needs
    Helping people Host, Create and Maintain their Web Site
    ServerAdmin Services also available

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts