optimizing apache for high traffic
I have a site with relatively high traffic. Normally the site goes down when it reaches about 1300 ppl online the same time. I am using Linode 2GB.
My current settings are like this (keepalive Off):
MinSpareServers 12
MaxSpareServers 24
MaxClients 20
MaxRequestsPerChild 6000
While I know it involves a lot of testing, I have very little back-end programming skills. What would be a good value to start with?
Thanks so much,
Allen
4 Replies
robert
Apache can be configured in such a manner that the memory load from keepalives isn't so huge (things like switching from mod_php to a fastcgi approach), but generally they're not worth it unless you have a ton of RAM. And that's not something that tends to happen in a VPS environment.
Would it be helpful if I attach my htop/iotop or other results?