1 tilqicom Mar 20, 2012 22:03
3 sam2kb Mar 21, 2012 05:40
Also, I'm almost sure that Apache/PHP is not a problem here. MySQL is probably contributing the most to server load.
Are you running out of memory, or is your CPU load over 70% ?
4 tilqicom Mar 21, 2012 07:02
70 % ? Averages are not even close.
I kept getting "Excessive resource usage" messages the whole day hourly, but not because of b2, it was because of a WP install (prob. wp cron).
However surprisingly enough, it says b2 knocked it down.
I use munin to see what's going on, but it usually doesnt allow me to pinpoint what's the exact cause.
I have consulted about nginx, but they didnt recommend it.As far as APC goes, it was my choice.I did an extensive research on which to choose (eAcc, APC or xCache), while people said xCache and eAcc did better on benchmarks, the general opinion was that APC was more reliable, (probably because it was PHP's choice to be default for v6 and up).
And i am not sure if it is "that many hits". I get only about 4k uniques a day, probably 10k pageviews tops.I assume a VPS would be enough for that.But i have plans of switching to a dedi of course.
5 sam2kb Mar 21, 2012 07:09
I get only about 4k uniques a day, probably 10k pageviews tops
VPS should handle that easily, for some reason I thought it's a lot more than that
You need to tweak the server then.
Basically what you say is "my server goes down, I want to fix it, but don't want to change anything" :)
6 sam2kb Mar 21, 2012 07:25
Here's the stats from my 2 dedicated servers. One uses APC, another one uses eAccelerator. Similar specs, similar config. Both servers run nginx/php-fpm, there's no apache at all. The user 'apache' is kept for compatibility only.
APC
http://www.mediafire.com/conv/c395f75b2cf2a3c55829e257883bdcbcaefa24bec1a2726b48402ed269d5ac306g.jpg
eAccellerator
http://www.mediafire.com/conv/9321940d59a968e2c0ab6a74f9004d230b0562489e23f3421f54481129b7d7dc6g.jpg
Get rid of APC and install eAccelerator. I know that may sound stupid, but trust me. It takes a lot less memory per process than APC. You'll see PHP processes taking ~20-30 Mb instead of 150
Also, as I told you before, with that many hits as your site has, you need to find a better server. Facebook is not running on a VPS, there must be a reason, right ;)
Or at least replace Apache with Nginx.