News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SMF Shoutbox

Started by Deep, March 15, 2006, 08:09:52 AM

Previous topic - Next topic

jawatkin

#920
I installed 1.21 late last night after some testing on my forum and all was well... My peak on my forums is around 2-5 PM (with a buildup starting around noon)... When I got to about 40-50 concurrent users (with auto-refresh set at 20 seconds), the site went unreachable and up and down quite a few times.... I removed the function call and it still continued to bounce for 5 minutes at a time.  I'm on shared hosting with 1and1, but I'm trying to figure out what happened?

I checked my logs this evening and just before the issues, the sboxDB.php was being viewed 10,000 times per hour!!!!

1) I haven't looked deep into sboxDB.php, but I assume that it makes a query or two, correct? Would this (along with PHP pages on the site) be enough to kill the webserver?

2) Is it typical for it to keep bouncing, even after the code was removed?

3) Can this be prevented by removing the auto-refresh?

1and1 isn't too helpful, they've escalated the case to see if I need to go to a VPS or something, but with a 300 user forum with about 50 or so concurrent, shouldn't have done that, right? Maybe it's just a coincidence and there's another reason?

EDIT: added server log

Kettu

Quote from: qubbah on April 13, 2007, 03:13:57 PM
1.15
sorry i miss looking your g
No prob. You only can change the background colour at Admin => Features and Options => SMF Shoutbox => List of dark themes
There add the name(s) of your other theme(s) and it should (if the themes use the correct code) use the colour of it now.
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

qubbah

Quote from: Kettu on April 14, 2007, 04:05:21 AM
Quote from: qubbah on April 13, 2007, 03:13:57 PM
1.15
sorry i miss looking your g
No prob. You only can change the background colour at Admin => Features and Options => SMF Shoutbox => List of dark themes
There add the name(s) of your other theme(s) and it should (if the themes use the correct code) use the colour of it now.
i cant change anything, when i change it, its still go to default.

Kettu

Quote from: qubbah on April 14, 2007, 05:12:11 AM
Quote from: Kettu on April 14, 2007, 04:05:21 AM
Quote from: qubbah on April 13, 2007, 03:13:57 PM
1.15
sorry i miss looking your g
No prob. You only can change the background colour at Admin => Features and Options => SMF Shoutbox => List of dark themes
There add the name(s) of your other theme(s) and it should (if the themes use the correct code) use the colour of it now.
i cant change anything, when i change it, its still go to default.
You have to add the name of the folder, not the "trivial" name.
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

mbirth

Quote from: jawatkin on April 14, 2007, 12:30:06 AM
I installed 1.21 late last night after some testing on my forum and all was well... My peak on my forums is around 2-5 PM (with a buildup starting around noon)... When I got to about 40-50 concurrent users (with auto-refresh set at 20 seconds), the site went unreachable and up and down quite a few times.... I removed the function call and it still continued to bounce for 5 minutes at a time.  I'm on shared hosting with 1and1, but I'm trying to figure out what happened?

Anybody using 1and1 hosting? Curious about database speed
Update: StrataCafe status (see 4th post)
Is 1and1.com slow?
(Use Google and you'll find MANY more complaints about 1&1. It's a miracle they still have customers.)


Quote from: jawatkin on April 14, 2007, 12:30:06 AMI checked my logs this evening and just before the issues, the sboxDB.php was being viewed 10,000 times per hour!!!!

If update is set to 20 secs, there occur 3 updates a minute, 180 updates an hour for 1 person. More, if you write something. Now assume 50 users online and writing and you are at 9000 refreshs minimum for only one hour.


Quote from: jawatkin on April 14, 2007, 12:30:06 AM1) I haven't looked deep into sboxDB.php, but I assume that it makes a query or two, correct? Would this (along with PHP pages on the site) be enough to kill the webserver?

Not usually. But 1&1's servers are a shame.


Quote from: jawatkin on April 14, 2007, 12:30:06 AM2) Is it typical for it to keep bouncing, even after the code was removed?

What code did you remove?


Quote from: jawatkin on April 14, 2007, 12:30:06 AM3) Can this be prevented by removing the auto-refresh?

Then, the users will click "Refresh" more often to see if something's new. So you might end up with even more hits on sboxDB.php.


Quote from: jawatkin on April 14, 2007, 12:30:06 AM1and1 isn't too helpful, they've escalated the case to see if I need to go to a VPS or something, but with a 300 user forum with about 50 or so concurrent, shouldn't have done that, right? Maybe it's just a coincidence and there's another reason?

Yeah, I guess that's their trick: Make users switch to hosting packages which bring 1&1 more money. You should look out for another hosting company... there are lots out there.


Cheers,
  -mARKUS


P.S.: I secretly updated sBox to 1.15b now which is compatible to SMF 1.1.2 AND saves the settings!


NEVER contact me via ICQ/MSN/whatever for support inquiries unless I told you to do so! Use the forum threads instead.
Only send PMs if you need to tell me sensitive data.

qubbah

Quote from: Kettu on April 14, 2007, 05:24:09 AM
Quote from: qubbah on April 14, 2007, 05:12:11 AM
Quote from: Kettu on April 14, 2007, 04:05:21 AM
Quote from: qubbah on April 13, 2007, 03:13:57 PM
1.15
sorry i miss looking your g
No prob. You only can change the background colour at Admin => Features and Options => SMF Shoutbox => List of dark themes
There add the name(s) of your other theme(s) and it should (if the themes use the correct code) use the colour of it now.
i cant change anything, when i change it, its still go to default.
You have to add the name of the folder, not the "trivial" name.

for example when i check the box of guest can shout, its still go to the default one..

Kettu

Quote from: qubbah on April 14, 2007, 01:10:19 PMfor example when i check the box of guest can shout, its still go to the default one..
Sorry, I have no other idea.
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

mbirth

Quote from: qubbah on April 14, 2007, 01:10:19 PMfor example when i check the box of guest can shout, its still go to the default one..

Download the new 1.15b. This is working for SMF 1.1.2.

Cheers,
  -mARKUS


NEVER contact me via ICQ/MSN/whatever for support inquiries unless I told you to do so! Use the forum threads instead.
Only send PMs if you need to tell me sensitive data.

Bancherd

Great mod!  I have it installed on 1.1.2 without any problems.

I have a question however, how do I set it to work with Thai-language and properly display Thai fonts? 

My apologies if this has been posted elsewhere; I looked, but did not see anything.  :D

samames

i have this mod installed on default theme and it has improoved VASTLY!! SO THANKS MBIRTH:)

1 problem my custom theme has no BoardIndex.template.php so where shud i put
// display shoutbox
  if (function_exists('sbox')) sbox();??

my  theme consists of:
images  folder
languages  folder

error_log
index.php
index.template.php
style.css
theme_info.xml
Firefox 3 user. Mac user. Pc user.

samames

i've fixed it myself, my theme seems to be using the babylon theme's boardindex.template.php file... I didn't know custom themes did this i tought they just use the default themes files, oh well sorted now. By the way you have advanced this mod greatly, thanks for making this mod so easy to use. This is probably 1 of the best made mods for smf so thanks :)
Firefox 3 user. Mac user. Pc user.

qubbah

Quote from: mbirth on April 14, 2007, 01:58:59 PM
Quote from: qubbah on April 14, 2007, 01:10:19 PMfor example when i check the box of guest can shout, its still go to the default one..

Download the new 1.15b. This is working for SMF 1.1.2.

Cheers,
  -mARKUS

now im using smf 1.1.1
but when i sett the shoutbox option its still go to the default one...
anybody can tell me what is the problem there....

Metalguyx

ok i instaled and its ok i see it on the board an all, but when i shout my (every user) bowser blockes for a while and then it says This:

hxxp:www.imagesforme.com/viewer.php?id=2238nevalja3.JPG [nonactive]

and if i click contine it somes again, but if i click "stop script" it posts, whats the problem??! plzz help

and this:

hxxp:www.imagesforme.com/viewer.php?id=5163nevalja.JPG [nonactive]

???

Kettu

Quote from: Metalguyx on April 20, 2007, 08:06:44 PM
and this:



???
You use another language, polish? So you have to copy the english language file and rename it to sbox.polish.php.
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

A_Lua

I instal this mod, is all ok, but i have 3 questions
only admins can delet msg, is it possible to give to the mods that possibility to?
how can i put the clock in my correct time?
and is it possible to take out the day and only see the hour?

ty

kiss

Metalguyx

Quote from: Kettu on April 21, 2007, 04:46:23 AM
Quote from: Metalguyx on April 20, 2007, 08:06:44 PM
and this:

hxxp:www.imagesforme.com/viewer.php?id=5163nevalja.JPG [nonactive]

???
You use another language, polish? So you have to copy the english language file and rename it to sbox.polish.php.

I use coratian language , so i do sbox.coratian.php. ?  and where do I pu that file when i rename english file?

Kettu

Quote from: Metalguyx on April 21, 2007, 05:17:27 AMI use coratian language , so i do sbox.coratian.php. ?  and where do I pu that file when i rename english file?
To the language-Folder of the default Theme or if your theme doesn't use this theme as backup to the language folder of you theme.
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

Metalguyx

OK thx, one more problem, when i tipe in Č or Ć (coratians letter)  it shoves me ? , how do I fix it? I puted coratians lenugage pack in my smf and its working , just this letters are now working... plzz help

Moa666

i have this message in the shoutbox:
Connection Problems
Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.
i am using smf 1.1.2 and smf shoutbox 1.15b.
if someone knows the solution, help me

PrestoDark

My Problem :

Error occur on file "Error.php" in "/Sources" on line 370...

Please Help me!!

Advertisement: