Hello,
I have a site of a free images hosting hosted in a VPS:
2GB RAM DDR3
CPU: 4 Core AuthenticAMD, QEMU Virtual CPU version 1.0.50
cpu MHz : 2199.998
cache size : 512 KB
With my site i use Cloudflare, a free CDN service that cache me all the images.
My site is growing very fast and now every day i counsume 4 TB of bandwitdh with 18.000.000 hits. (With cloudflare i consume low Gb of BW because it caches all)
Now i overloaded their server, so they disabled my account, that's normal. I have like 1 week and after they will block my account.
So now i must handle 18.000.000 request with apache.
Is that possible? I tried to disable Cloudflare, and my site goes offline cause of lot of request.
I think that it's not a problem of VPS, my CPU load max is 20% and i have always 20% of RAM free (this when i disable cloudflare).
Apache crash with this message "server reached MaxClients setting, consider raising the MaxClients setting". Only if i reactive Cloudflare, the site goes up.
These are my config about Maxclients:
<IfModule prefork.c>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
ServerLimit 150
MaxClients 150
MaxRequestsPerChild 150
</IfModule>
I used netstat too see the connection when the site goes offline, at 1700 connection. (it overcome the 2200 but with site offline, or with trasfer very slow, like half site loaded after 5 minutes)
I used apache server-status, here the statistic. This log is when cloudflare is active, if i deactive it in little seconds there are hundres (maybe thousand) apache connection.
<snip>
This log is when i disable cloudflare (i printed this log after 1 second after i disabled cloudflare, because after 5 seconds site goes offline)
<snip>
Hope you will propouse some solution,
Thank you
[edited by: incrediBILL at 3:38 am (utc) on Aug 5, 2012]
[edit reason] removed URLS, see TOS & Charter - paste all relevant data in post [/edit]