SimplePortal

Development => Bugs => Fixed or Bogus Bugs => Topic started by: infyquest on December 26, 2009, 10:22:59 AM

Title: Shoutbox making server CPU utilzation 100%
Post by: infyquest on December 26, 2009, 10:22:59 AM
I am using lighthttpd webserver and running SMF 1.1.11 with Simpleportal 2.3.1.
php is being run as a cgi with 10 worker threads.
when I enable shoutbox, the CPU usage of server peaked at 98%.
Its causing frequent 500-internal server errors and also slowed down the site.
(each php process is taking around 15-20% of cpu)
is it possible to make the shoutbox less cpu intensive
(at anytime there will be around 100 members accessing the forum)
Title: Re: Shoutbox making server CPU utilzation 100%
Post by: armpit on December 26, 2009, 07:56:30 PM
Had the same trouble with apache running 2rc2 and SP 2.3.1

The offending code is the block starting at line 1835 in Sources/Subs.php

It kept timing out, and the server continually spawned php processes untill it exhausted all resources. I had to truncate the shouts table in order to stop it timing out.
Title: Re: Shoutbox making server CPU utilzation 100%
Post by: sokha on January 06, 2010, 06:23:51 AM
Finally, I found out why the server is overloaded. After removing shoutbox, everything is fine.
Title: Re: Shoutbox making server CPU utilzation 100%
Post by: sokha on January 18, 2010, 07:18:59 AM
I just wondering if anyone has the way of fixing the shoutbox.
Title: Re: Shoutbox making server CPU utilzation 100%
Post by: [SiNaN] on January 18, 2010, 04:37:39 PM
http://simpleportal.net/index.php?topic=4126.msg26219#msg26219
Title: Re: Shoutbox making server CPU utilzation 100%
Post by: steve51184 on February 10, 2010, 06:11:39 AM
just had this problem and the above link helped me get into my forum to disable the shoutbox but what causes this and is there fix or can i just not use the forum now?
Title: Re: Shoutbox making server CPU utilzation 100%
Post by: sokha on February 15, 2010, 09:02:49 PM
http://simpleportal.net/index.php?topic=4126.msg26219#msg26219

Thanks
Title: Re: Shoutbox making server CPU utilzation 100%
Post by: steve51184 on February 21, 2010, 03:54:22 AM
still no fix yet?
Title: Re: Shoutbox making server CPU utilzation 100%
Post by: [SiNaN] on February 21, 2010, 05:41:20 AM
There is a fix and it works fine.
Title: Re: Shoutbox making server CPU utilzation 100%
Post by: steve51184 on February 21, 2010, 08:58:42 AM
There is a fix and it works fine.

not for me
Title: Re: Shoutbox making server CPU utilzation 100%
Post by: ccbtimewiz on February 22, 2010, 08:26:50 PM
There is a fix and it works fine.

not for me

Did you perform the fix? Did you clear the cache? Are you absolutely sure this is not an issue with your server?
Title: Re: Shoutbox making server CPU utilzation 100%
Post by: steve51184 on February 22, 2010, 08:30:18 PM
There is a fix and it works fine.

not for me

Did you perform the fix? Did you clear the cache? Are you absolutely sure this is not an issue with your server?

installed the fix and cleared the cache but the images and quotes are messed up :(
Title: Re: Shoutbox making server CPU utilzation 100%
Post by: [SiNaN] on February 23, 2010, 05:47:37 AM
I doubt it would work for everyone but you. And saying "not working" doesn't help at all, really.
Title: Re: Shoutbox making server CPU utilzation 100%
Post by: steve51184 on February 23, 2010, 05:59:47 AM
I doubt it would work for everyone but you. And saying "not working" doesn't help at all, really.

tell me what info you'd like and i'll provide it
Title: Re: Shoutbox making server CPU utilzation 100%
Post by: Nathaniel on February 23, 2010, 03:34:58 PM
What do you mean by "the images and quotes are messed up"?

Please be more descriptive. What does "messed up" mean? I screenshot could be useful.
Title: Re: Shoutbox making server CPU utilzation 100%
Post by: steve51184 on February 23, 2010, 05:02:13 PM
What do you mean by "the images and quotes are messed up"?

Please be more descriptive. What does "messed up" mean? I screenshot could be useful.

right after some testing i've found out the image problem only affects the sigs and with that fix it stops all <br />'s frrom working so peoples sigs are showing out of line IF they used <br /> in there sigs

and the quotes are like this before the fix:

(http://i47.tinypic.com/vzakw2.png)

and like this after:

(http://i50.tinypic.com/2ueh9g3.png)
Title: Re: Shoutbox making server CPU utilzation 100%
Post by: [SiNaN] on February 27, 2010, 07:03:16 AM
Can you attach your Subs.php file here?
Title: Re: Shoutbox making server CPU utilzation 100%
Post by: steve51184 on February 27, 2010, 08:26:54 AM
Can you attach your Subs.php file here?

here ya go
Title: Re: Shoutbox making server CPU utilzation 100%
Post by: steve51184 on March 03, 2010, 04:26:27 PM
still waiting for a reply... been almost a month now :(
Title: Re: Shoutbox making server CPU utilzation 100%
Post by: steve51184 on March 03, 2010, 06:04:11 PM
PLEASE?????????
Title: Re: Shoutbox making server CPU utilzation 100%
Post by: [SiNaN] on March 10, 2010, 05:35:12 AM
Try the attached file. If it doesn't work, please start a new topic in English Support (http://simpleportal.net/index.php?board=11.0) board. Topics in Bugs board does not appear on our support topics list.
Title: Re: Shoutbox making server CPU utilzation 100%
Post by: steve51184 on March 10, 2010, 05:39:10 AM
Try the attached file. If it doesn't work, please start a new topic in English Support (http://simpleportal.net/index.php?board=11.0) board. Topics in Bugs board does not appear on our support topics list.

still have the same problems as above
Title: Re: Shoutbox making server CPU utilzation 100%
Post by: [SiNaN] on March 10, 2010, 05:42:01 AM
Do you have quote tag enabled in your shoutbox?
Title: Re: Shoutbox making server CPU utilzation 100%
Post by: steve51184 on March 10, 2010, 05:43:40 AM
Do you have quote tag enabled in your shoutbox?

nope
Title: Re: Shoutbox making server CPU utilzation 100%
Post by: azunai on March 24, 2010, 11:13:35 AM
@steve

http://simpleportal.net/index.php?topic=4126.msg30202#msg30202
SimplePortal 2.3.8 © 2008-2024, SimplePortal