Log in

View Full Version : hosting problem


digif
09-16-2009, 08:54 PM
We can see in the logs that the serverload was normal until around 23:15:
...
10:50:03 PM 0 271 1.54 1.52 1.34
11:00:01 PM 11 228 1.20 2.02 1.87
11:10:01 PM 6 232 2.07 1.75 1.80
11:22:25 PM 0 712 46.38 55.42 34.00
Average: 4 213 1.48 1.55 1.38
...

Then it jumped up to over 55 which is very high - below 5 is normal. Over 60 and the server will go down.

I can see alot of processes like theese was running:
...
User:beneamat PID:22711 Run Time:190(secs) Memory:133760(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/beneamat/public_html/member.php
User:beneamat PID:22716 Run Time:188(secs) Memory:134284(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/beneamat/public_html/misc.php
User:beneamat PID:22718 Run Time:188(secs) Memory:134284(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/beneamat/public_html/misc.php
User:beneamat PID:22723 Run Time:184(secs) Memory:133772(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/beneamat/public_html/misc.php
User:beneamat PID:22724 Run Time:184(secs) Memory:133772(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/beneamat/public_html/misc.php
User:beneamat PID:22727 Run Time:184(secs) Memory:133768(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/beneamat/public_html/misc.php
User:beneamat PID:22730 Run Time:184(secs) Memory:133752(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/beneamat/public_html/index.php
User:beneamat PID:22731 Run Time:184(secs) Memory:133768(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/beneamat/public_html/misc.php
User:beneamat PID:22732 Run Time:184(secs) Memory:133772(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/beneamat/public_html/misc.php
User:beneamat PID:22748 Run Time:178(secs) Memory:133776(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/beneamat/public_html/misc.php
User:beneamat PID:22768 Run Time:172(secs) Memory:133772(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/beneamat/public_html/misc.php
....

The above is just an example of at least 60 processes with the same name (misc.php) that was running at the same time.

But all looks ok now - so I guess it was Your script that couldn't handle to many visitors.

Can this be true? What to do to prevent it next time?

TimberFloorAu
09-16-2009, 09:08 PM
what do you mean "YOUR" script ?

digif
09-16-2009, 09:16 PM
I dont know, they told me that, maybe vB or something with it
I asked him what he suggest, and he told me this:

Hello again, some scripts have "cache" plugins that can help alot - but I'm unsure if Your script has some modules or plugins that You can use.

I do know one Wordpress site that we had issues with, overloading a server due his site used too much memory and CPU when he had alot of visitors but when he activated a plugin called "wp-cache" his site didn't use much at all, so that was solved that way.

TimberFloorAu
09-16-2009, 09:22 PM
Could be a malformed plugin/hack.

As you arent a massively large forum, it could be down to bad scripting, or corrupt databases.

Easiest solution is to disable all of your plugins, monitor server load, and then re - enable them one at a time,

Try Lynnes suggestion:

https://vborg.vbsupport.ru/showpost.php?p=1885263&postcount=6

digif
09-16-2009, 09:33 PM
I know, but tonight was important for users on forum, so suddenly just BOOM :) like when you jump on digg

TimberFloorAu
09-16-2009, 09:38 PM
<never been on social bookmarking sites.

I would check your mods tho

digif
09-16-2009, 09:44 PM
<never been on social bookmarking sites

oftopic, but when you get on first page, your hosting is down in only one minute, and require few days to get up again :) (until you get out from the first page)

TimberFloorAu
09-16-2009, 09:47 PM
youve lost me now ? explain please

digif
09-16-2009, 09:55 PM
What? I understand what you told me to do.
I just posted you what happens if you get on digg.com first page because you said you dont know what's that.

TimberFloorAu
09-16-2009, 09:59 PM
What? I understand what you told me to do.
I just posted you what happens if you get on digg.com first page because you said you dont know what's that.


Ahh sorry your talking about Digg.

Right, well I dont know, lol.. Digg has never appealed to me.
Neither to be honest has Twitter FaceBook or other social mumbo jumbo.

Ste