collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 439
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Installation errors? Mod incompatibilities? Upgrade problems? Make your way over to the Install and Upgrade Support board for all your solutions!

Author Topic: Shoutbox making server CPU utilzation 100%  (Read 19277 times)

0 Members and 1 Guest are viewing this topic.

Offline infyquest

  • Just Registered
  • Posts: 1
  • SMF Version: 1.1.10
  • SP Version: 2.3.1
Shoutbox making server CPU utilzation 100%
« 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)

Offline armpit

  • Just Registered
  • Posts: 1
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Shoutbox making server CPU utilzation 100%
« Reply #1 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.

Offline sokha

  • Newbie
  • Posts: 3
  • SMF Version: 1.1.10
  • SP Version: 2.2.2
Re: Shoutbox making server CPU utilzation 100%
« Reply #2 on: January 06, 2010, 06:23:51 AM »
Finally, I found out why the server is overloaded. After removing shoutbox, everything is fine.

Offline sokha

  • Newbie
  • Posts: 3
  • SMF Version: 1.1.10
  • SP Version: 2.2.2
Re: Shoutbox making server CPU utilzation 100%
« Reply #3 on: January 18, 2010, 07:18:59 AM »
I just wondering if anyone has the way of fixing the shoutbox.

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
And slowly, you come to realize... It's all as it should be...

Offline steve51184

  • Jr. Member
  • **
  • Posts: 68
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
Re: Shoutbox making server CPU utilzation 100%
« Reply #5 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?

Offline sokha

  • Newbie
  • Posts: 3
  • SMF Version: 1.1.10
  • SP Version: 2.2.2

Offline steve51184

  • Jr. Member
  • **
  • Posts: 68
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
Re: Shoutbox making server CPU utilzation 100%
« Reply #7 on: February 21, 2010, 03:54:22 AM »
still no fix yet?

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Shoutbox making server CPU utilzation 100%
« Reply #8 on: February 21, 2010, 05:41:20 AM »
There is a fix and it works fine.
And slowly, you come to realize... It's all as it should be...

Offline steve51184

  • Jr. Member
  • **
  • Posts: 68
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
Re: Shoutbox making server CPU utilzation 100%
« Reply #9 on: February 21, 2010, 08:58:42 AM »
There is a fix and it works fine.

not for me

Offline ccbtimewiz

  • Hero Member
  • *****
  • Posts: 2185
  • Gender: Male
  • $("div.content:dd").hide();
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
  • EhPortal Version: None
Re: Shoutbox making server CPU utilzation 100%
« Reply #10 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?

Offline steve51184

  • Jr. Member
  • **
  • Posts: 68
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
Re: Shoutbox making server CPU utilzation 100%
« Reply #11 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 :(

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Shoutbox making server CPU utilzation 100%
« Reply #12 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.
And slowly, you come to realize... It's all as it should be...

Offline steve51184

  • Jr. Member
  • **
  • Posts: 68
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
Re: Shoutbox making server CPU utilzation 100%
« Reply #13 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

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Shoutbox making server CPU utilzation 100%
« Reply #14 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.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline steve51184

  • Jr. Member
  • **
  • Posts: 68
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
Re: Shoutbox making server CPU utilzation 100%
« Reply #15 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:



and like this after:


Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Shoutbox making server CPU utilzation 100%
« Reply #16 on: February 27, 2010, 07:03:16 AM »
Can you attach your Subs.php file here?
And slowly, you come to realize... It's all as it should be...

Offline steve51184

  • Jr. Member
  • **
  • Posts: 68
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
Re: Shoutbox making server CPU utilzation 100%
« Reply #17 on: February 27, 2010, 08:26:54 AM »
Can you attach your Subs.php file here?

here ya go

Offline steve51184

  • Jr. Member
  • **
  • Posts: 68
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
Re: Shoutbox making server CPU utilzation 100%
« Reply #18 on: March 03, 2010, 04:26:27 PM »
still waiting for a reply... been almost a month now :(

Offline steve51184

  • Jr. Member
  • **
  • Posts: 68
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
Re: Shoutbox making server CPU utilzation 100%
« Reply #19 on: March 03, 2010, 06:04:11 PM »
PLEASE?????????

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Shoutbox making server CPU utilzation 100%
« Reply #20 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 board. Topics in Bugs board does not appear on our support topics list.
And slowly, you come to realize... It's all as it should be...

Offline steve51184

  • Jr. Member
  • **
  • Posts: 68
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
Re: Shoutbox making server CPU utilzation 100%
« Reply #21 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 board. Topics in Bugs board does not appear on our support topics list.

still have the same problems as above

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Shoutbox making server CPU utilzation 100%
« Reply #22 on: March 10, 2010, 05:42:01 AM »
Do you have quote tag enabled in your shoutbox?
And slowly, you come to realize... It's all as it should be...

Offline steve51184

  • Jr. Member
  • **
  • Posts: 68
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
Re: Shoutbox making server CPU utilzation 100%
« Reply #23 on: March 10, 2010, 05:43:40 AM »
Do you have quote tag enabled in your shoutbox?

nope

Offline azunai

  • Semi Newbie
  • *
  • Posts: 13
  • SMF Version: 1.1.10
  • SP Version: 2.3.1