Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Apache Configuration Help

Discussion in 'EasyApache' started by sahostking, Jul 24, 2014.

  1. sahostking

    sahostking Well-Known Member

    May 15, 2012
    Likes Received:
    Trophy Points:
    Cape Town, South Africa
    cPanel Access Level:
    Root Administrator

    We have 1000 sites and VPS holds 8GB of memory which we can increase to 32MB if required but it doesn't seem to be memory issue.

    Cloudlinux, suphp, MPM Worker is being used.
    I checked and our RES mem usage per apache process is to from 42m to 50m.

    Our Apache configuration is as per below.

    Maximum Spare Servers

    Server Limit

    Max Request Workers

    Max Connections Per Child

    Max Keep-Alive Requests

    Ran a watch cat /proc/loadavg
    4.02 3.05 3.47 1/746 23748

    and then again a few minutes later
    0.77 1.61 2.67 2/723 47766

    Does that indicate Max Requests is set too low on apache?

    Any recommendations please? as server seems to be slow from time to time.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelKurtN

    cPanelKurtN Well-Known Member Staff Member

    Jan 29, 2013
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    To be honest, a load average in and of itself doesn't indicate much beyond high CPU utilization, which only gives you a single point of reference. Tweaking the processes running under Apache generally requires the change to be made with a sense of purpose and with data backing up why.

    If you're trying to increase the performance of your server, the first thing I'd recommend is to first inspect your system logs for errors or warnings that seem out of place, as this usually can indicate hardware issues. If you're satisfied that you don't have any hardware issues, I'd start profiling your machine, taking note of i/o (disk), network, memory, cpu, and running processes utilization.

    By seeing these things at the same time, you can better see which process (or group of processes) are using your resources, and how. There are a lot of tools out there, and everyone is partial to their own ways of doing things. However, this page contains a lot of very useful tools that I've personally used in the past, but comes with a tutorial on how and what you use them for.

    Good luck.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice