Apache Configuration Help
Hi,
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
75
Server Limit
512
Max Request Workers
500
Max Connections Per Child
10000
Max Keep-Alive Requests
100
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.
-
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. 0
Please sign in to leave a comment.
Comments
1 comment