Recent Topics

1 Mar 20, 2012 22:03    

b2 has shut my server down step by step..
I wonder what went wrong..This is unusual..

I have apc installed and all caches enabled.How can i track this thing down

Time: Tue Mar 20 22:31:24 2012 +0200
Resource: Virtual Memory Size
Exceeded: 209 > 200 (MB)
Executable: /usr/bin/php
Command Line: /home/**/public_html/admin.php
PID: 27282
Killed: No

Time: Tue Mar 20 22:41:43 2012 +0200
Account: tilqi
Process Count: 20 (Not killed)

Process Information:

User:tilqi PID:29940 Run Time:26(secs) Memory:143060(kb) exe:/**/**/php cmd:/**/**/php /home/tilqi/public_html/ozlusozler.php
User:tilqi PID:29949 Run Time:25(secs) Memory:151412(kb) exe:/**/**/php cmd:/**/**/php /home/tilqi/public_html/htsrv/anon_async.php
User:tilqi PID:29955 Run Time:25(secs) Memory:138720(kb) exe:/**/**/php cmd:/**/**/php /home/tilqi/public_html/ozlusozler.php
User:tilqi PID:29992 Run Time:23(secs) Memory:159884(kb) exe:/**/**/php cmd:/**/**/php /home/tilqi/public_html/ozlusozler.php
User:tilqi PID:29999 Run Time:23(secs) Memory:142508(kb) exe:/**/**/php cmd:/**/**/php /home/tilqi/public_html/ozlusozler.php
User:tilqi PID:30056 Run Time:20(secs) Memory:159852(kb) exe:/**/**/php cmd:/**/**/php /home/tilqi/public_html/ozlusozler.php
User:tilqi PID:30156 Run Time:10(secs) Memory:163996(kb) exe:/**/**/php cmd:/**/**/php /home/tilqi/public_html/ozlusozler.php
User:tilqi PID:30166 Run Time:8(secs) Memory:162188(kb) exe:/**/**/php cmd:/**/**/php /home/tilqi/public_html/ozlusozler.php
User:tilqi PID:30172 Run Time:7(secs) Memory:151344(kb) exe:/**/**/php cmd:/**/**/php /home/tilqi/public_html/ozlusozler.php
User:tilqi PID:30174 Run Time:7(secs) Memory:7532(kb) exe:/**/**/php cmd:/**/**/php /home/tilqi/public_html/ozlusozler.php
User:tilqi PID:30176 Run Time:7(secs) Memory:142508(kb) exe:/**/**/php cmd:/**/**/php /home/tilqi/public_html/ozlusozler.php
User:tilqi PID:30183 Run Time:7(secs) Memory:143556(kb) exe:/**/**/php cmd:/**/**/php /home/tilqi/public_html/ozlusozler.php
User:tilqi PID:30197 Run Time:7(secs) Memory:150832(kb) exe:/**/**/php cmd:/**/**/php /home/tilqi/public_html/ozlusozler.php
User:tilqi PID:30199 Run Time:7(secs) Memory:159640(kb) exe:/**/**/php cmd:/**/**/php /home/tilqi/public_html/ozlusozler.php
User:tilqi PID:30205 Run Time:6(secs) Memory:151856(kb) exe:/**/**/php cmd:/**/**/php /home/tilqi/public_html/ozlusozler.php
User:tilqi PID:30225 Run Time:6(secs) Memory:139464(kb) exe:/**/**/php cmd:/**/**/php /home/tilqi/public_html/ozlusozler.php
User:tilqi PID:30227 Run Time:6(secs) Memory:145164(kb) exe:/**/**/php cmd:/**/**/php /home/tilqi/public_html/ozlusozler.php
User:tilqi PID:30229 Run Time:6(secs) Memory:163220(kb) exe:/**/**/php cmd:/**/**/php /home/tilqi/public_html/ozlusozler.php
User:tilqi PID:30244 Run Time:5(secs) Memory:147512(kb) exe:/**/**/php cmd:/**/**/php /home/tilqi/public_html/ozlusozler.php
User:tilqi PID:30263 Run Time:2(secs) Memory:150832(kb) exe:/**/**/php cmd:/**/**/php /home/tilqi/public_html/ozlusozler.php

and the sink:

Time: Tue Mar 20 22:42:55 2012 +0200
1 Min Load Avg: 33.96
5 Min Load Avg: 9.81
15 Min Load Avg: 3.80
Running/Total Processes: 67/308

2 Mar 21, 2012 05:37

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.

3 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 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 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" :)


Form is loading...