Hello,
I will explain how to calculate maxclients:
------------------------------------
MaxClients = Total RAM / Max child process size
------------------------------------
Calculate memory used by Apache:
Code:
ps -ylC httpd --sort:rss
Example of Output:
Code:
S UID PID PPID C PRI NI RSS SZ WCHAN TTY TIME CMD
S 99 6859 5230 0 75 0 19616 25081 semtim ? 00:00:01 httpd
19616 / 1024 = 19,15 MB per Apache proccess
Now you need see the total number of processes
Code:
lsof -i | grep httpd | wc -l
Example of Output:
Well, the conclusion of this example:
19,15 MB used per Apache proccess x 52 Apache processes on memory = 995,8 MB of memory used
Then if you have 2 GB of RAM, in this case you should set MaxClients to 93, why 93?
2048 MB (Total RAM) - 256 MB (This memory reserved for OS and cPanel) / 19,15 MB (Memory used per Apache proccess) = 93,57....
Also, if you have 10000 daily visitors, you should upgrade your VPS or move to dedicated.
I hope this can help you, if I'm wrong on this, someone correct me.