Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
1 registered (Thelockman), 24 Guests and 22 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 02/15/08
Posts: 18
Top Posters (30 Days)
Ruben Rocha 95
Rick 85
Mark S 74
Gizmo 49
Thelockman 49
driv 35
Sirdude 32
ntdoc 28
packlite 27
AllenAyres 25
Latest Photos
bear test
Beach Barbie-Q
Sunset
Accept the challenge!
Trees
Page 2 of 2 < 1 2
Topic Options
Rate This Topic
#217452 - 09/30/08 09:37 PM Re: simple sql query causing 100% cpu usage for minutes [Re: bakerzdosen]
bakerzdosen Offline
stranger

Registered: 09/18/08
Posts: 14
Loc: Utah
Well, so much for that approach. It was pegged at 100% CPU for a coupla hours tonight before I restarted mysqld. (Only this time ubbt_POSTS was marked as needing repairs).

Now to go look up how to turn on logging of slow queries.
_________________________
bmwsporttouring.com

Top
#217525 - 10/03/08 01:23 AM Re: simple sql query causing 100% cpu usage for minutes [Re: bakerzdosen]
GregH Offline
newbie

Registered: 10/16/06
Posts: 31
Loc: Grapevine (Dallas), TX
I don't mean to interrupt, but we've had similar symptoms on my board for the past few months. Everything had been fine, but now the system hangs every few days (lots of Apache threads waiting). Eventually, it just fixes itself. I don't have the SQL details as bakerzdosen does. I have checked the settings described above and they're set correctly. We have a dedicated server. I don't know SQL commands well enough to try to diagnose when a problem is occurring, though.

I have a large number of posts (over 800,000). Is there some reorg command I could issue?

Top
#217656 - 10/07/08 09:50 PM Re: simple sql query causing 100% cpu usage for minutes [Re: GregH]
hatter Offline
stranger

Registered: 09/20/06
Posts: 9
My users have had similar complaints in the last few months. I checked and it seems to be mysqld which is choking. We have a relatively small forum too.

I'm not sure if this helps or not, but it seems to be worse on the main forum page. by clicking on "Forum List", here is an example of the slowness in debug info:

Quote:

Generated in 24.950 seconds in which 24.585 seconds were spent on a total of 23 queries. Zlib compression enabled.
_________________________
- Hatter
http://www.CarfaxAbbey.net

Top
#217657 - 10/07/08 10:10 PM Re: simple sql query causing 100% cpu usage for minutes [Re: hatter]
Rick Administrator Offline

*****

Registered: 06/04/06
Posts: 7998
Loc: Aberdeen, WA
The front page will normally generate about 9-10 queries if all posts are read. So when you see things like 23 queries total, it means that you probably have full unread post tracking turned on, and the user in question has about 13-14 forums with unread posts. Each one of those queries is pretty expensive so it can add up and slow things down pretty quickly.
_________________________
UBB.threads™ Developer
My Personal Website · StogieSmokers.com

Top
#217682 - 10/08/08 03:55 PM Re: simple sql query causing 100% cpu usage for minutes [Re: Rick]
ntdoc Offline

***

Registered: 11/08/06
Posts: 3244
I've not looked into it but on another site with different software they were actually having a recursive lookup issue that really slammed the board the more users they had.

Hopefully UBB doesn't have that issue in any of it's code but also make sure any home or custom pages you've created don't have that issue.

Top
Page 2 of 2 < 1 2


Shout Box

Today's Birthdays
theregit
Recent Topics
7.4.2 UNREAD
by Thelockman
Today at 05:23 PM
7.4.1 show/hide category bug
by Seattlebrian
Today at 11:56 AM
7.4.2 Discussion
by Rick
Today at 10:21 AM
UBBCentral now running 7.4.2
by Rick
Today at 10:21 AM
New members don't get access and are not displayed in the config panel
by Yomar
Yesterday at 03:32 AM
Forum Stats
4298 Members
33 Forums
30693 Topics
156040 Posts

Max Online: 978 @ 06/24/07 08:19 PM